diff options
Diffstat (limited to 'testing/scripts/build-umlhostfs')
-rwxr-xr-x | testing/scripts/build-umlhostfs | 4 |
1 files changed, 2 insertions, 2 deletions
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 |