3
0
Fork 0
forked from mirrors/nixpkgs

stage-2: Don't run hwclock in containers

This commit is contained in:
Eelco Dolstra 2015-05-11 16:22:49 +02:00
parent c8ef598945
commit b978df019a

View file

@ -164,7 +164,9 @@ $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
if [ -e /dev/rtc ]; then
hwclock --hctosys
fi
# Record the boot configuration.