summary refs log tree commit diff
path: root/mkimage.sh.in
diff options
context:
space:
mode:
authorJuan RP <xtraeme@gmail.com>2014-12-05 15:31:27 +0100
committerJuan RP <xtraeme@gmail.com>2014-12-05 15:31:27 +0100
commita7c809c6b0b30eac257b52100476b4981023b70d (patch)
treeadbd4b881ddd07b0ce20a66bc7f39ec99747c9af /mkimage.sh.in
parenta3675d092fb53a60304ce63cfaf6910df2b13b79 (diff)
downloadhrmpf-a7c809c6b0b30eac257b52100476b4981023b70d.tar.gz
hrmpf-a7c809c6b0b30eac257b52100476b4981023b70d.tar.xz
hrmpf-a7c809c6b0b30eac257b52100476b4981023b70d.zip
mkimage: use losetup --partscan rather than partx.
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