aboutsummaryrefslogtreecommitdiffstats
path: root/testing/scripts/build-umlrootfs
diff options
context:
space:
mode:
authorReto Buerki <reet@codelabs.ch>2012-12-09 10:23:37 +0100
committerTobias Brunner <tobias@strongswan.org>2013-01-17 16:54:54 +0100
commit97265abaf0265d0cc59fb1be02e3239fca3daae3 (patch)
tree1d73c8f05f7b17c30291caf3cea4f05f553f9298 /testing/scripts/build-umlrootfs
parentb24d3ed5fc5ad891d7d210bba9b94dbe0a1468ff (diff)
downloadstrongswan-97265abaf0265d0cc59fb1be02e3239fca3daae3.tar.bz2
strongswan-97265abaf0265d0cc59fb1be02e3239fca3daae3.tar.xz
Inform kernel about /dev/nbd0 partition changes
Diffstat (limited to 'testing/scripts/build-umlrootfs')
-rwxr-xr-xtesting/scripts/build-umlrootfs4
1 files changed, 2 insertions, 2 deletions
diff --git a/testing/scripts/build-umlrootfs b/testing/scripts/build-umlrootfs
index 0f8781c25..6131c1d1c 100755
--- a/testing/scripts/build-umlrootfs
+++ b/testing/scripts/build-umlrootfs
@@ -22,7 +22,7 @@ echo "Building root image"
[ -f "$ROOTFS" ] || die "Root image $ROOTFS not found"
-check_commands qemu-nbd
+check_commands partprobe qemu-nbd
load_qemu_nbd
@@ -37,7 +37,7 @@ execute "cp $ROOTFS $BASE"
log_action "Connecting base image to NBD device $NBDEV"
execute "qemu-nbd -c $NBDEV $BASE"
-sync
+partprobe $NBDEV
log_action "Mounting $NBDPARTITION to $LOOPDIR"
execute "mount $NBDPARTITION $LOOPDIR"