tar2fs: use -s Luke
Really no need to test and sleep when there's sync mode.
This commit is contained in:
parent
0cb540acf2
commit
4918019b29
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user