]> err.no Git - systemd/commitdiff
Fix hwclock
authorMichael Biebl <biebl@debian.org>
Mon, 27 Dec 2010 15:10:42 +0000 (16:10 +0100)
committerTollef Fog Heen <tfheen@err.no>
Sun, 16 Jan 2011 09:06:21 +0000 (10:06 +0100)
Since we mask hwclock and hwclockfirst, we need to run hwclock-save.service
on shutdown now.
To avoid running hwclock twice during boot, we remove
sysinit.target.wants/hwclock-load.service. hwclock is already triggered
by /lib/udev/rules.d/85-hwclock.rules. This needs further coordination
with udev.

debian/rules

index ca220bc349f9638b7533496a746599656dc4dd60..49d8596d8b8a79c0e65312aa016949940b380618 100755 (executable)
@@ -19,7 +19,8 @@ override_dh_auto_clean:
 override_dh_install:
        rm debian/tmp/usr/share/doc/systemd/LICENSE
        rm debian/tmp/lib/security/pam_systemd.la
-       rm debian/tmp/lib/systemd/system/shutdown.target.wants/hwclock-save.service
+       # udev already triggers hwclock during boot
+       rm debian/tmp/etc/systemd/system/sysinit.target.wants/hwclock-load.service
        dh_install -O--parallel --fail-missing
        dh_install -plibpam-systemd debian/pam-configs /usr/share