Merge lp:~bladernr/maas-cert-server/mcs-install-curtin_userdata-by-packaging into lp:~hardware-certification/maas-cert-server/trunk
Status: | Merged |
---|---|
Approved by: | Jeff Lane |
Approved revision: | 60 |
Merged at revision: | 59 |
Proposed branch: | lp:~bladernr/maas-cert-server/mcs-install-curtin_userdata-by-packaging |
Merge into: | lp:~hardware-certification/maas-cert-server/trunk |
Diff against target: |
92 lines (+57/-12) 3 files modified
debian/changelog (+8/-0) debian/postinst (+49/-0) usr/sbin/maniacs-setup (+0/-12) |
To merge this branch: | bzr merge lp:~bladernr/maas-cert-server/mcs-install-curtin_userdata-by-packaging |
Related bugs: |
Reviewer | Review Type | Date Requested | Status |
---|---|---|---|
Rod Smith | Approve | ||
Review via email: mp+299374@code.launchpad.net |
Description of the change
Moves the copying of curtin_userdata and preseeds out of maniacs-setup and into packaging via postinst script.
This ensures that upgrading the package will also upgrade these files preventing a nasty situation where users may upgrade MCS repeatedly, but never re-run maniacs-setup and thus end up with stale, broken curtin_userdata files.
It does prompt the user after installation to run maniacs-setup to update.
If users have configured a local mirror, of course, this will break mirror usage until they re-run maniacs-setup --update-preseeds, but that breakage will be a lot more obvious than the breakage that occurs when the preseeds are downrev compared to the rest of the mcs files.
I've done a simple test upgrade using this version and it seemed to go OK. Based on that and your comment in the bug report that you've tested it more extensively yourself, I'll approve this. That said, I think that this change interacts with others we've been considering, so we may end up making further changes in the not-too-distant future. I'll comment more in the bug report....