Added code to wait for loopback readiness
This commit is contained in:
parent
c2e09c32bc
commit
9137ba5e5f
|
@ -292,6 +292,8 @@ else
|
||||||
parttype="logical"
|
parttype="logical"
|
||||||
fi
|
fi
|
||||||
loopback="$(losetup -f --show -o "$partstart" "$img")"
|
loopback="$(losetup -f --show -o "$partstart" "$img")"
|
||||||
|
# Wait 3 seconds to ensure loopback is ready.
|
||||||
|
sleep 3
|
||||||
tune2fs_output="$(tune2fs -l "$loopback")"
|
tune2fs_output="$(tune2fs -l "$loopback")"
|
||||||
rc=$?
|
rc=$?
|
||||||
if (( $rc )); then
|
if (( $rc )); then
|
||||||
|
|
Loading…
Reference in New Issue