about summary refs log tree commit diff
path: root/mkimage.sh.in
diff options
context:
space:
mode:
Diffstat (limited to 'mkimage.sh.in')
-rw-r--r--mkimage.sh.in3
1 files changed, 1 insertions, 2 deletions
diff --git a/mkimage.sh.in b/mkimage.sh.in
index 91096e9..e244ea0 100644
--- a/mkimage.sh.in
+++ b/mkimage.sh.in
@@ -142,8 +142,7 @@ fi
 parted $FILENAME mkpart primary ${_btype} 4096s ${BOOT_FSSIZE}
 parted $FILENAME mkpart primary ext2 ${BOOT_FSSIZE} 100%
 parted $FILENAME toggle 1 boot
-LOOPDEV=$(losetup --show --find $FILENAME)
-partx -a $LOOPDEV
+LOOPDEV=$(losetup --show --find --partscan $FILENAME)
 mkfs.${BOOT_FSTYPE} $_args ${LOOPDEV}p1 >/dev/null
 
 case "$ROOT_FSTYPE" in