diff --git a/modules/system/boot/stage-2-init.sh b/modules/system/boot/stage-2-init.sh index 30298c3127fd..5343aa9eae99 100644 --- a/modules/system/boot/stage-2-init.sh +++ b/modules/system/boot/stage-2-init.sh @@ -27,7 +27,7 @@ setPath "@path@" # Mount special file systems. mkdir -m 0755 -p /etc test -e /etc/fstab || touch /etc/fstab # to shut up mount -[ -s /etc/mtab ] && rm /etc/mtab # while installing a symlink is created (see man mount), if it's still there for whateever reason remove it +test -s /etc/mtab && rm /etc/mtab # while installing a symlink is created (see man mount), if it's still there for whateever reason remove it rm -f /etc/mtab* # not that we care about stale locks mkdir -m 0755 -p /proc mount -n -t proc none /proc @@ -100,11 +100,6 @@ rm -rf /var/lock # gone, of course. rm -rf /nix/var/nix/chroots # recreated in activate-configuration.sh -if test -n "$safeMode"; then - mkdir -m 0755 -p /var/run - touch /var/run/safemode -fi - # Create the minimal device nodes needed for the activation scripts # and Upstart.