diff options
author | Reto Buerki <reet@codelabs.ch> | 2012-12-09 10:23:37 +0100 |
---|---|---|
committer | Tobias Brunner <tobias@strongswan.org> | 2013-01-17 16:54:54 +0100 |
commit | 97265abaf0265d0cc59fb1be02e3239fca3daae3 (patch) | |
tree | 1d73c8f05f7b17c30291caf3cea4f05f553f9298 /testing/scripts/build-umlhostfs | |
parent | b24d3ed5fc5ad891d7d210bba9b94dbe0a1468ff (diff) | |
download | strongswan-97265abaf0265d0cc59fb1be02e3239fca3daae3.tar.bz2 strongswan-97265abaf0265d0cc59fb1be02e3239fca3daae3.tar.xz |
Inform kernel about /dev/nbd0 partition changes
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 |