I added some debug output to /etc/init/hwclock.conf While, according to dmesg, the kernel sets the system clock from the hardware clock:
$ sudo dmesg|grep "system clock" [ 2.257135] mt-rtc mt-rtc: setting system clock to 2015-12-14 02:00:36 UTC (1450058436)
the system clock is already incorrect when hwclock.conf runs:
+ . /etc/default/rcS + UTC=yes + [ yes = yes ] + tz=--utc + [ = yes ] + echo XXXXXXXXXX Before XXXXXXXXXX Before + date Mon Dec 14 09:43:14 UTC 2015 + hwclock Mon Dec 14 02:00:41 2015 -0.881525 seconds + exec hwclock --systz --utc --noadjfile
I added some debug output to /etc/init/ hwclock. conf
While, according to dmesg, the kernel sets the system clock from the hardware clock:
$ sudo dmesg|grep "system clock"
[ 2.257135] mt-rtc mt-rtc: setting system clock to 2015-12-14 02:00:36 UTC (1450058436)
the system clock is already incorrect when hwclock.conf runs:
+ . /etc/default/rcS
+ UTC=yes
+ [ yes = yes ]
+ tz=--utc
+ [ = yes ]
+ echo XXXXXXXXXX Before
XXXXXXXXXX Before
+ date
Mon Dec 14 09:43:14 UTC 2015
+ hwclock
Mon Dec 14 02:00:41 2015 -0.881525 seconds
+ exec hwclock --systz --utc --noadjfile