improve UTC setting migration on upgrades
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
sysvinit (Ubuntu) |
Invalid
|
High
|
Unassigned | ||
Xenial |
Triaged
|
High
|
Unassigned |
Bug Description
[SRU Justification]
On upgrade, some users who have selected a non-default setting for their clock handling in the installer will see prompts for a conffile they never edited by hand.
[Regression potential]
Because we are adding a pre-dependency to a package, there is risk of this causing upgrade failures. The upgrade path should be tested aggressively with different profiles from both 14.04 and 15.10 before publishing to -updates.
[Test case]
1. On a newly-installed 14.04 system, edit /etc/default/rcS to contain 'UTC=no' instead of 'UTC=yes'. Make no other changes to this file.
2. Enable -proposed in your apt sources.
3. Run do-release-upgrade or update-manager to upgrade to 16.04.
4. Confirm that the upgrade succeeds.
5. Confirm that you are not shown a conffile prompt for /etc/default/rcS on upgrade.
6. Confirm that /etc/adjtime has been created, with 'LOCAL' as the third line of the file.
7. Repeat steps 1-6 for a newly-installed 15.10 system.
slangasek | pitti: I see sysvinit Breaks: systemd (<< 228-5ubuntu3), but that doesn't enforce systemd 228-5ubuntu3 being configured before sysvinit, which means the conffile may already be migrated away before systemd postinst runs... I think the right way to do this is with initscripts Pre-Depends: systemd, and for initscripts' preinst script to handle any conffile cleaning so that users are spared conffile prompts on upgrade
pitti | slangasek: ah, good point; this needs to be tested thoroughly, pre-depends have some habit of causing trouble
See bug 1541532 and http://
Changed in systemd (Ubuntu Xenial): | |
assignee: | nobody → Martin Pitt (pitti) |
status: | New → Triaged |
description: | updated |
Changed in systemd (Ubuntu Xenial): | |
milestone: | none → xenial-updates |
affects: | systemd (Ubuntu Xenial) → sysvinit (Ubuntu Xenial) |
Changed in sysvinit (Ubuntu Xenial): | |
assignee: | Martin Pitt (pitti) → nobody |
description: | updated |
affects: | Ubuntu Xenial → sysvinit (Ubuntu Xenial) |
tags: |
added: verification-failed removed: verification-needed |
Changed in sysvinit (Ubuntu): | |
milestone: | xenial-updates → none |
importance: | Undecided → High |
Changed in sysvinit (Ubuntu Xenial): | |
importance: | Undecided → High |
tags: | added: id-5cdeb9fd019d774244463b71 |
I have a fixed package prepared locally and am testing it now.