Run hwclock --hctosys to initialize the system time

This commit is contained in:
Eelco Dolstra 2014-03-18 23:14:34 +01:00
parent 08095f97ce
commit 7d8fea797a
2 changed files with 9 additions and 0 deletions

View File

@ -203,6 +203,9 @@ in
# To wait for SCSI devices to appear.
"scsi_wait_scan"
# Needed by the stage 2 init script.
"rtc_cmos"
];
boot.initrd.kernelModules =

View File

@ -161,6 +161,12 @@ echo "running activation script..."
$systemConfig/activate
# Restore the system time from the hardware clock. We do this after
# running the activation script to be sure that /etc/localtime points
# at the current time zone.
hwclock --hctosys
# Record the boot configuration.
ln -sfn "$systemConfig" /run/booted-system