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.
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