Package: util-linux Version: 2.20.1-5.8 Severity: important Tags: patch initramfs-tools has started mounting and fscking both / and /usr in the initramfs, and that means we need to set the system clock properly as well. (#763777)
Currently /lib/udev/hwclock-set will happily adjust the system time twice if the RTC uses local time and it is run in both the initramfs and the main init system. Please apply the following patch to make it do that only once. The patch should also be applicable to util-linux/experimental, with some fuzz (--systz was changed to --hctosys). When using the --hctosys option there is no longer a problem of adjusting for local time twice, but it is still undesirable to step the system time unnecessarily. Ben. --- util-linux-2.20.1/debian/hwclock-set +++ util-linux-2.20.1/debian/hwclock-set @@ -8,6 +8,10 @@ exit 0 fi +if [ -e /run/udev/hwclock-set ]; then + exit 0 +fi + if [ -f /etc/default/rcS ] ; then . /etc/default/rcS fi @@ -25,3 +29,5 @@ else /sbin/hwclock --rtc=$dev --systz fi + +touch /run/udev/hwclock-set --- END --- -- System Information: Debian Release: jessie/sid APT prefers unstable APT policy: (500, 'unstable'), (500, 'testing'), (500, 'stable'), (1, 'experimental') Architecture: i386 (x86_64) Foreign Architectures: amd64 Kernel: Linux 3.16-2-amd64 (SMP w/4 CPU cores) Locale: LANG=en_GB.utf8, LC_CTYPE=en_GB.utf8 (charmap=UTF-8) Shell: /bin/sh linked to /bin/dash Versions of packages util-linux depends on: ii debconf [debconf-2.0] 1.5.53 ii dpkg 1.17.13 ii initscripts 2.88dsf-53.4 ii install-info 5.2.0.dfsg.1-4 ii libblkid1 2.20.1-5.8 ii libc6 2.19-11 ii libncurses5 5.9+20140913-1 ii libselinux1 2.3-2 ii libslang2 2.3.0-1 ii libtinfo5 5.9+20140913-1 ii libuuid1 2.20.1-5.8 ii lsb-base 4.1+Debian13 ii tzdata 2014g-1 ii zlib1g 1:1.2.8.dfsg-2 util-linux recommends no packages. Versions of packages util-linux suggests: ii dosfstools 3.0.26-3 ii kbd 1.15.5-1 ii util-linux-locales 2.20.1-5.8 -- debconf information excluded -- To UNSUBSCRIBE, email to debian-bugs-dist-requ...@lists.debian.org with a subject of "unsubscribe". Trouble? Contact listmas...@lists.debian.org