summary refs log tree commit diff
path: root/nixos/modules/system/boot/stage-1-init.sh
diff options
context:
space:
mode:
authorLuca Bruno <lucabru@src.gnome.org>2015-06-13 15:02:41 +0200
committerLuca Bruno <lucabru@src.gnome.org>2015-06-13 15:02:51 +0200
commitc3e832b323deced79b49ecf42a06714e2aa661e9 (patch)
tree896d2da6c2cfaae78d6e6ddccb2a0bde9548327b /nixos/modules/system/boot/stage-1-init.sh
parent3754de550f8cb0d1b8f79b40d2865db07c8cdf53 (diff)
downloadnixlib-c3e832b323deced79b49ecf42a06714e2aa661e9.tar
nixlib-c3e832b323deced79b49ecf42a06714e2aa661e9.tar.gz
nixlib-c3e832b323deced79b49ecf42a06714e2aa661e9.tar.bz2
nixlib-c3e832b323deced79b49ecf42a06714e2aa661e9.tar.lz
nixlib-c3e832b323deced79b49ecf42a06714e2aa661e9.tar.xz
nixlib-c3e832b323deced79b49ecf42a06714e2aa661e9.tar.zst
nixlib-c3e832b323deced79b49ecf42a06714e2aa661e9.zip
stage-1: mkdir -p /mnt-root, it may be created earlier by some hooks
Diffstat (limited to 'nixos/modules/system/boot/stage-1-init.sh')
-rw-r--r--nixos/modules/system/boot/stage-1-init.sh2
1 files changed, 1 insertions, 1 deletions
diff --git a/nixos/modules/system/boot/stage-1-init.sh b/nixos/modules/system/boot/stage-1-init.sh
index 5af644279e5f..e8d276920a83 100644
--- a/nixos/modules/system/boot/stage-1-init.sh
+++ b/nixos/modules/system/boot/stage-1-init.sh
@@ -317,7 +317,7 @@ mountFS() {
 
 
 # Try to find and mount the root device.
-mkdir /mnt-root
+mkdir -p $targetRoot
 
 exec 3< @fsInfo@