Inform kernel about /dev/nbd0 partition changes

This commit is contained in:
Reto Buerki authored and Tobias Brunner committed 2013-01-17 16:54:54 +01:00
1 parent b24d3ed5fc
commit 97265abaf0
3 files changed
+6 -6

No files matched your search

+2 -2
View File
@@ -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"