summary refs log tree commit diff
path: root/nixos/modules/system
diff options
context:
space:
mode:
authorFrederik Rietdijk <fridh@fridh.nl>2018-04-04 19:36:39 +0200
committerFrederik Rietdijk <fridh@fridh.nl>2018-04-04 19:36:39 +0200
commit23741692fabcdfee9a8b7f89576236a69d4d4d8a (patch)
treeb3d53e3f97547c93bba340176bee375cb720ebdc /nixos/modules/system
parentd051989efa7354384271bb21c5f471cfc05c1541 (diff)
parentb9484875bcc1918945d373e0ea46ffff938adb05 (diff)
downloadnixlib-23741692fabcdfee9a8b7f89576236a69d4d4d8a.tar
nixlib-23741692fabcdfee9a8b7f89576236a69d4d4d8a.tar.gz
nixlib-23741692fabcdfee9a8b7f89576236a69d4d4d8a.tar.bz2
nixlib-23741692fabcdfee9a8b7f89576236a69d4d4d8a.tar.lz
nixlib-23741692fabcdfee9a8b7f89576236a69d4d4d8a.tar.xz
nixlib-23741692fabcdfee9a8b7f89576236a69d4d4d8a.tar.zst
nixlib-23741692fabcdfee9a8b7f89576236a69d4d4d8a.zip
Merge master into staging
Diffstat (limited to 'nixos/modules/system')
-rw-r--r--nixos/modules/system/boot/stage-2-init.sh8
1 files changed, 4 insertions, 4 deletions
diff --git a/nixos/modules/system/boot/stage-2-init.sh b/nixos/modules/system/boot/stage-2-init.sh
index 9d2c580d62a7..b83012dfda7e 100644
--- a/nixos/modules/system/boot/stage-2-init.sh
+++ b/nixos/modules/system/boot/stage-2-init.sh
@@ -43,7 +43,7 @@ if [ ! -e /proc/1 ]; then
         local options="$3"
         local fsType="$4"
 
-        mkdir -m 0755 -p "$mountPoint"
+        install -m 0755 -d "$mountPoint"
         mount -n -t "$fsType" -o "$options" "$device" "$mountPoint"
     }
     source @earlyMountScript@
@@ -71,7 +71,7 @@ fi
 
 
 # Provide a /etc/mtab.
-mkdir -m 0755 -p /etc
+install -m 0755 -d /etc
 test -e /etc/fstab || touch /etc/fstab # to shut up mount
 rm -f /etc/mtab* # not that we care about stale locks
 ln -s /proc/mounts /etc/mtab
@@ -79,8 +79,8 @@ ln -s /proc/mounts /etc/mtab
 
 # More special file systems, initialise required directories.
 [ -e /proc/bus/usb ] && mount -t usbfs usbfs /proc/bus/usb # UML doesn't have USB by default
-mkdir -m 01777 -p /tmp
-mkdir -m 0755 -p /var/{log,lib,db} /nix/var /etc/nixos/ \
+install -m 01777 -d /tmp
+install -m 0755 -d /var/{log,lib,db} /nix/var /etc/nixos/ \
     /run/lock /home /bin # for the /bin/sh symlink