tar2vm: use -s Luke

This is a partial backport of g4918019 commit:
"Really no need to test and sleep when there's sync mode"
This commit is contained in:
Michael Shigorin 2014-02-27 17:53:10 +04:00
parent 4b45694ee4
commit e31b12cbf8

View File

@ -78,7 +78,7 @@ losetup "$LOOPDEV" "$IMG"
parted --script "$LOOPDEV" mklabel msdos
parted --script "$LOOPDEV" mkpart primary ext2 1 "$DISKSIZEM"
kpartx -a "$LOOPDEV"
kpartx -a -s "$LOOPDEV"
LOOPDEV1="/dev/mapper/$(basename "$LOOPDEV")p1"
mkfs."$ROOTFSTYPE" "$LOOPDEV1"