summaryrefslogtreecommitdiff
path: root/scripts
diff options
context:
space:
mode:
authorKarel Kočí <cynerd@email.cz>2019-04-28 19:33:46 +0200
committerKarel Kočí <cynerd@email.cz>2019-04-28 19:33:46 +0200
commit5097b9ecd4dcd55d127c498f091e3558762591a3 (patch)
treebc90b02048150d188d53309018ddabbe9e0c742f /scripts
parent113a6146978ca56bfc9024b965b756dc905bd3a0 (diff)
downloadlaminar-cnf-5097b9ecd4dcd55d127c498f091e3558762591a3.tar.gz
laminar-cnf-5097b9ecd4dcd55d127c498f091e3558762591a3.tar.bz2
laminar-cnf-5097b9ecd4dcd55d127c498f091e3558762591a3.zip
uchroot: mkdir target directory for mount
Diffstat (limited to 'scripts')
-rwxr-xr-xscripts/uchroot1
1 files changed, 1 insertions, 0 deletions
diff --git a/scripts/uchroot b/scripts/uchroot
index dd3d77a..576c88e 100755
--- a/scripts/uchroot
+++ b/scripts/uchroot
@@ -41,6 +41,7 @@ mount --rbind /dev "$ROOT/dev"
mount --rbind /sys "$ROOT/sys"
while IFS=: read src target; do
[ -n "$src" -a -n "$target" ] || continue
+ mkdir -p "$ROOT/$target"
mount --rbind "$src" "$ROOT/$target"
done <<<"$MOUNT"