summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorDieter Plaetinck <dieter@plaetinck.be>2008-12-09 17:33:44 +0100
committerDieter Plaetinck <dieter@plaetinck.be>2008-12-09 17:33:44 +0100
commitf907a4e46d98cdc11924e78fb9f1bb9d39e3ce0b (patch)
tree38c3c35f62345db9424a8b6887252ff92ec9d26a /src
parentde7c6d7d956e7ccbbde584a90ba6e55fb2728287 (diff)
fix for mount/mkdir
Diffstat (limited to 'src')
-rw-r--r--src/core/libs/lib-blockdevices-filesystems.sh1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/core/libs/lib-blockdevices-filesystems.sh b/src/core/libs/lib-blockdevices-filesystems.sh
index 0ad2c4f..d2bbaf9 100644
--- a/src/core/libs/lib-blockdevices-filesystems.sh
+++ b/src/core/libs/lib-blockdevices-filesystems.sh
@@ -533,6 +533,7 @@ process_filesystem ()
[ "$fs_mount" = runtime ] && dst=$fs_mountpoint
[ "$fs_mount" = target ] && dst=$var_TARGET_DIR$fs_mountpoint
debug "mounting $part on $dst"
+ mkdir -p $dst &>/dev/null # directories may or may not already exist
mount -t $fs_type $part $dst >$LOG 2>&1 || ( show_warning 'Mount' "Error mounting $part on $dst" ; return 1 )
fi
fi