X-Git-Url: https://git.strongswan.org/?p=strongswan.git;a=blobdiff_plain;f=testing%2Fscripts%2Fbuild-umlrootfs;h=5c35185d96fcde30d35c9e11bf216baa23997bb7;hp=1a983b85b26bb21142cd7b5d8e219a79306b0136;hb=c796659f23efef7eee6d1e89ae560683ffa6cdcf;hpb=6981aca04fa5658b245efc1d09b6c6fdf79b5813 diff --git a/testing/scripts/build-umlrootfs b/testing/scripts/build-umlrootfs index 1a983b8..5c35185 100755 --- a/testing/scripts/build-umlrootfs +++ b/testing/scripts/build-umlrootfs @@ -89,21 +89,27 @@ mount -o loop gentoo-fs $LOOPDIR >> $LOGFILE 2>&1 tar xjpf $ROOTFS -C $LOOPDIR >> $LOGFILE 2>&1 cecho "done" - ###################################################### # copying default /etc/hosts to the root filesystem # cecho " * Copying '$HOSTCONFIGDIR/default/etc/hosts' to the root filesystem" cp -fp $HOSTCONFIGDIR/default/etc/hosts $LOOPDIR/etc/hosts -# ##################################################### # extracting strongSwan into the root filesystem # - cecho " * Extracting strongSwan into the root filesystem" tar xjf $STRONGSWAN -C $LOOPDIR/root >> $LOGFILE 2>&1 +###################################################### +# setting up mountpoint for shared source tree +# +if [ "${SHAREDTREE+set}" = "set" ]; then + cecho " * setting up shared strongswan tree at '$SHAREDTREE'" + mkdir $LOOPDIR/root/strongswan-shared + echo "" >> $LOOPDIR/etc/fstab + echo "none /root/strongswan-shared hostfs $SHAREDTREE" >> $LOOPDIR/etc/fstab +fi ###################################################### # installing strongSwan and setting the local timezone @@ -140,6 +146,9 @@ cecho-n " * Compiling $STRONGSWANVERSION within the root file system as chroot.. chroot $LOOPDIR /bin/bash /install.sh >> $LOGFILE 2>&1 cecho "done" +rm -f $INSTALLSHELL + + ###################################################### # copying the host's ssh public key #