testing: Make sure $SHAREDDIR exists before mounting it
Closes strongswan/strongswan#344.
This commit is contained in:
committed by
Tobias Brunner
parent
a730873211
commit
5191c2b063
@@ -123,6 +123,7 @@ log_action "Mounting proc filesystem to $LOOPDIR/proc"
|
||||
execute "mount -t proc none $LOOPDIR/proc"
|
||||
do_on_exit umount $LOOPDIR/proc
|
||||
|
||||
mkdir -p $SHAREDDIR
|
||||
mkdir -p $LOOPDIR/root/shared
|
||||
log_action "Mounting $SHAREDDIR as /root/shared"
|
||||
execute "mount -o bind $SHAREDDIR $LOOPDIR/root/shared"
|
||||
|
||||
Reference in New Issue
Block a user