From 97265abaf0265d0cc59fb1be02e3239fca3daae3 Mon Sep 17 00:00:00 2001 From: Reto Buerki Date: Sun, 9 Dec 2012 10:23:37 +0100 Subject: Inform kernel about /dev/nbd0 partition changes --- testing/scripts/build-umlhostfs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'testing/scripts/build-umlhostfs') diff --git a/testing/scripts/build-umlhostfs b/testing/scripts/build-umlhostfs index f53410385..d3cb2f651 100755 --- a/testing/scripts/build-umlhostfs +++ b/testing/scripts/build-umlhostfs @@ -26,7 +26,7 @@ HOSTSDIR=$PWD/hosts [ -f $BASE ] || die "Base image $BASE not found" [ -f $HOSTDIR ] || die "Hosts directory $HOSTSDIR not found" -check_commands qemu-img qemu-nbd +check_commands partprobe qemu-img qemu-nbd load_qemu_nbd @@ -47,7 +47,7 @@ do log_action "Creating guest image for $host" execute "qemu-img create -b $BASE -f qcow2 $ROOTFSDIR/$host.qcow2" 0 execute "qemu-nbd -c $NBDEV $ROOTFSDIR/$host.qcow2" 0 - sync + partprobe $NBDEV execute "mount $NBDPARTITION $LOOPDIR" 0 execute "cp -rf $HOSTSDIR/${host}/etc $LOOPDIR" 0 execute "cp -rf $HOSTSDIR/default/etc $LOOPDIR" 0 -- cgit v1.2.3