Merge lp:~vorlon/ubuntu/saucy/clock-setup/lp.1184006 into lp:ubuntu/saucy/clock-setup

Proposed by Steve Langasek
Status: Needs review
Proposed branch: lp:~vorlon/ubuntu/saucy/clock-setup/lp.1184006
Merge into: lp:ubuntu/saucy/clock-setup
Diff against target: 34 lines (+9/-2)
2 files modified
debian/changelog (+7/-0)
finish-install.d/10clock-setup (+2/-2)
To merge this branch: bzr merge lp:~vorlon/ubuntu/saucy/clock-setup/lp.1184006
Reviewer Review Type Date Requested Status
Colin Watson Needs Fixing
Review via email: mp+172706@code.launchpad.net

Description of the change

To post a comment you must log in.
Revision history for this message
Colin Watson (cjwatson) wrote :

I'm not sure this really addresses the comments I left in the sysvinit MP:

  We'll need to think about upload coordination. You have a version guard, but what about the overlap case with a daily build where an older installer installs a newer initscripts? That suggests to me that you shouldn't write to /etc/init/hwclock.override or /etc/init/hwclock-save.override if they already contain UTC settings; I think if we changed the installer first to handle either old or new, and then changed sysvinit with that refinement, then that would work.

So how about checking whether /etc/default/rcS contains UTC=.*, and if so assume that it should still be modified rather than hwclock*.override?

I also note that there's no default set for UTC in /etc/init/hwclock*.conf, and the test is [ "$UTC" = yes ]. Won't that mean an unset $UTC implies local time, which is not what's implemented here? Perhaps adding 'env UTC=yes' to /etc/init/hwclock*.conf would be appropriate.

Finally, we actually use lp:~ubuntu-core-dev/clock-setup/ubuntu rather than lp:ubuntu/clock-setup, and they don't share history; could you prepare a new branch based on that? Thanks.

review: Needs Fixing

Unmerged revisions

34. By Steve Langasek

Store UTC settings in /etc/init/hwclock{,-save}.override, not in
/etc/default/rcS which is now a conffile. LP: #1184006.

Preview Diff

[H/L] Next/Prev Comment, [J/K] Next/Prev File, [N/P] Next/Prev Hunk
=== modified file 'debian/changelog'
--- debian/changelog 2013-06-05 11:49:59 +0000
+++ debian/changelog 2013-07-03 00:35:32 +0000
@@ -1,3 +1,10 @@
1clock-setup (0.115ubuntu2) UNRELEASED; urgency=low
2
3 * Store UTC settings in /etc/init/hwclock{,-save}.override, not in
4 /etc/default/rcS which is now a conffile. LP: #1184006.
5
6 -- Steve Langasek <steve.langasek@ubuntu.com> Tue, 02 Jul 2013 17:31:58 -0700
7
1clock-setup (0.115ubuntu1) saucy; urgency=low8clock-setup (0.115ubuntu1) saucy; urgency=low
29
3 * Resynchronise with Debian. Remaining changes:10 * Resynchronise with Debian. Remaining changes:
411
=== modified file 'finish-install.d/10clock-setup'
--- finish-install.d/10clock-setup 2012-06-25 14:01:11 +0000
+++ finish-install.d/10clock-setup 2013-07-03 00:35:32 +0000
@@ -99,13 +99,13 @@
9999
100db_get clock-setup/utc100db_get clock-setup/utc
101if [ "$RET" = true ]; then101if [ "$RET" = true ]; then
102 sed -i -e 's:^UTC="no":UTC="yes":' -e 's:^UTC=no:UTC=yes:' $utcfile
103 if [ -e /target/etc/adjtime ]; then102 if [ -e /target/etc/adjtime ]; then
104 sed -i -e 's:^LOCAL$:UTC:' /target/etc/adjtime103 sed -i -e 's:^LOCAL$:UTC:' /target/etc/adjtime
105 fi104 fi
106 OPT="--utc"105 OPT="--utc"
107else106else
108 sed -i -e 's:^UTC="yes":UTC="no":' -e 's:^UTC=yes:UTC=no:' $utcfile107 echo 'env UTC=no' > /target/etc/init/hwclock.override
108 echo 'env UTC=no' > /target/etc/init/hwclock-save.override
109 if [ -e /target/etc/adjtime ]; then109 if [ -e /target/etc/adjtime ]; then
110 sed -i -e 's:^UTC$:LOCAL:' /target/etc/adjtime110 sed -i -e 's:^UTC$:LOCAL:' /target/etc/adjtime
111 fi111 fi

Subscribers

People subscribed via source and target branches