diff options
Diffstat (limited to 'export-noobs')
| -rwxr-xr-x | export-noobs/prerun.sh | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/export-noobs/prerun.sh b/export-noobs/prerun.sh index 3858c66..6282836 100755 --- a/export-noobs/prerun.sh +++ b/export-noobs/prerun.sh @@ -11,7 +11,7 @@ rm -rf "${NOOBS_DIR}" echo "Creating loop device..." cnt=0 -until LOOP_DEV="$(losetup --show --find --partscan "$IMG_FILE")"; do +until ensure_next_loopdev && LOOP_DEV="$(losetup --show --find --partscan "$IMG_FILE")"; do if [ $cnt -lt 5 ]; then cnt=$((cnt + 1)) echo "Error in losetup. Retrying..." |
