Inform kernel about /dev/nbd0 partition changes
This commit is contained in:
1 parent
b24d3ed5fc
commit
97265abaf0
3 files changed
+6
-6
No files matched your search
@@ -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"
|
||||
|
||||
Reference in new issue
Block a user