diff options
author | Eelco Dolstra <eelco.dolstra@logicblox.com> | 2015-05-11 16:22:49 +0200 |
---|---|---|
committer | Eelco Dolstra <eelco.dolstra@logicblox.com> | 2015-05-11 18:18:36 +0200 |
commit | b978df019a2b1281f7a70445eaa71b45049f4cfd (patch) | |
tree | f70f125cd7f2dc2395b8b0d0859005edef4342ed /nixos | |
parent | c8ef5989452e191a1d345cd006f54305cb989af6 (diff) | |
download | nixlib-b978df019a2b1281f7a70445eaa71b45049f4cfd.tar nixlib-b978df019a2b1281f7a70445eaa71b45049f4cfd.tar.gz nixlib-b978df019a2b1281f7a70445eaa71b45049f4cfd.tar.bz2 nixlib-b978df019a2b1281f7a70445eaa71b45049f4cfd.tar.lz nixlib-b978df019a2b1281f7a70445eaa71b45049f4cfd.tar.xz nixlib-b978df019a2b1281f7a70445eaa71b45049f4cfd.tar.zst nixlib-b978df019a2b1281f7a70445eaa71b45049f4cfd.zip |
stage-2: Don't run hwclock in containers
Diffstat (limited to 'nixos')
-rw-r--r-- | nixos/modules/system/boot/stage-2-init.sh | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/nixos/modules/system/boot/stage-2-init.sh b/nixos/modules/system/boot/stage-2-init.sh index 330e2f97c5bf..a73070ab332f 100644 --- a/nixos/modules/system/boot/stage-2-init.sh +++ b/nixos/modules/system/boot/stage-2-init.sh @@ -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. |