Merge branch 'master' into arm64

This commit is contained in:
Serge Schneider
2023-08-17 16:51:11 +01:00
3 changed files with 10 additions and 2 deletions

View File

@@ -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..."