diff options
| author | bamartin125 <bamartin125@gmail.com> | 2023-08-17 10:24:47 -0500 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2023-08-17 16:24:47 +0100 |
| commit | 446f3e34c8ceb33dfe7bd38578f1cd6b6afe19da (patch) | |
| tree | 00174937b13f5b8197a3c46b4dc09d33f3f3e76b /export-noobs | |
| parent | 01d24ef22778337ed04cf9d6444b1be57b6a1e1a (diff) | |
Adds call to mknod if loop dev does not exist after call to `losetup -f` (#483)
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..." |
