diff options
author | Reto Buerki <reet@codelabs.ch> | 2012-12-17 19:00:31 +0100 |
---|---|---|
committer | Tobias Brunner <tobias@strongswan.org> | 2013-01-17 16:54:58 +0100 |
commit | 0593b6c975684d61a7432c6593ef5a5a6bc7b21d (patch) | |
tree | c118999ce3a6dc3a2ea143ebbeff731809a116ca /testing/scripts/build-rootimage | |
parent | 48ea1d8b0b9d6c6fb1eab5f4ea4ed00cde91c4c0 (diff) | |
download | strongswan-0593b6c975684d61a7432c6593ef5a5a6bc7b21d.tar.bz2 strongswan-0593b6c975684d61a7432c6593ef5a5a6bc7b21d.tar.xz |
Export compile directory to guests
Use 9p over virtio to share files on the host with the guest domains.
The files are accessible in the guests /hostfs directory.
Diffstat (limited to 'testing/scripts/build-rootimage')
-rwxr-xr-x | testing/scripts/build-rootimage | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/testing/scripts/build-rootimage b/testing/scripts/build-rootimage index b575ebb50..ac9ee8bbc 100755 --- a/testing/scripts/build-rootimage +++ b/testing/scripts/build-rootimage @@ -48,6 +48,7 @@ do_on_exit umount $LOOPDIR/proc mkdir -p $LOOPDIR/root/compile log_action "Mounting $ROOTIMGCOMPILEDIR as /root/compile" execute "mount -o bind $ROOTIMGCOMPILEDIR $LOOPDIR/root/compile" +do_on_exit rm -r $LOOPDIR/root/compile do_on_exit umount $LOOPDIR/root/compile echo "Installing software from source" @@ -63,3 +64,5 @@ done log_action "Removing /etc/resolv.conf" execute "rm -f $LOOPDIR/etc/resolv.conf" + +mkdir -p $LOOPDIR/hostfs |