mirror of
https://github.com/NixOS/nixpkgs.git
synced 2025-07-13 21:50:33 +03:00
Run hwclock --hctosys to initialize the system time
This commit is contained in:
parent
08095f97ce
commit
7d8fea797a
2 changed files with 9 additions and 0 deletions
|
@ -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 =
|
||||
|
|
|
@ -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
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue