mirror of
https://github.com/NixOS/nixpkgs.git
synced 2025-02-24 05:00:19 +00:00
stage-2: Don't run hwclock in containers
(cherry picked from commit b978df019a
)
This commit is contained in:
parent
9647609e3e
commit
ec82157ac5
@ -164,7 +164,9 @@ $systemConfig/activate
|
|||||||
# Restore the system time from the hardware clock. We do this after
|
# Restore the system time from the hardware clock. We do this after
|
||||||
# running the activation script to be sure that /etc/localtime points
|
# running the activation script to be sure that /etc/localtime points
|
||||||
# at the current time zone.
|
# at the current time zone.
|
||||||
hwclock --hctosys
|
if [ -e /dev/rtc ]; then
|
||||||
|
hwclock --hctosys
|
||||||
|
fi
|
||||||
|
|
||||||
|
|
||||||
# Record the boot configuration.
|
# Record the boot configuration.
|
||||||
|
Loading…
Reference in New Issue
Block a user