]> git.ipfire.org Git - thirdparty/strongswan.git/commitdiff
testing: Make sure $SHAREDDIR exists before mounting it
authorNoel Kuntze <noel.kuntze@thermi.consulting>
Thu, 22 Apr 2021 12:28:34 +0000 (14:28 +0200)
committerTobias Brunner <tobias@strongswan.org>
Thu, 6 May 2021 15:21:59 +0000 (17:21 +0200)
Closes strongswan/strongswan#344.

testing/scripts/build-strongswan

index af1a53ee8934ffd7e14ed970dbbab9c522309608..bfc172777341cf2162cad0848e728406f7f802fb 100755 (executable)
@@ -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"