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