tar2fs: use -s Luke

Really no need to test and sleep when there's sync mode.
This commit is contained in:
Michael Shigorin 2013-07-15 21:22:47 +04:00
parent 0cb540acf2
commit 4918019b29

View File

@ -157,14 +157,9 @@ fi
# not ROOTSIZEM but "the rest"; somewhat non-trivial arithmetics lurk in parted
mkpart
kpartx -a "$LOOPDEV"
kpartx -a -s "$LOOPDEV"
LOOPROOT="/dev/mapper/$(basename "$LOOPDEV")p$ROOTPART"
# might take a tiny bit of time to actually appear
for i in `seq 10`; do
[ -b "$LOOPROOT" ] && break || sleep 0.1
done
mkfs."$ROOTFSTYPE" "$LOOPROOT"
if [ -n "$BOOTPART" ]; then