testing: Make sure $SHAREDDIR exists before mounting it

Closes strongswan/strongswan#344.
This commit is contained in:
Noel Kuntze
2021-05-06 17:21:59 +02:00
committed by Tobias Brunner
parent a730873211
commit 5191c2b063
+1
View File
@@ -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"