From 0593b6c975684d61a7432c6593ef5a5a6bc7b21d Mon Sep 17 00:00:00 2001 From: Reto Buerki Date: Mon, 17 Dec 2012 19:00:31 +0100 Subject: 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. --- testing/scripts/build-rootimage | 3 +++ 1 file changed, 3 insertions(+) (limited to 'testing/scripts/build-rootimage') 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 -- cgit v1.2.3