Backend: abort apex loop mounts early if failing
- /dev/block/loop* nodes don't behave correctly in Lineage Recovery anymore (beginning ~ LOS19), not sure why, but mount and losetup can't use them - bail out early so we don't slow the install to a crawl with the rapid mount failures
This commit is contained in:
1 file changed
+4
@@ -82,6 +82,10 @@ mount_apex() {
|
||||
mount -t ext4 -o ro,loop,noatime $loop $dest && echo "$dest (loop)" >&2;
|
||||
if [ $? != 0 ]; then
|
||||
losetup -d $loop 2>/dev/null;
|
||||
if [ $num -eq 64 -a $(losetup -f) == "/dev/block/loop0" ]; then
|
||||
echo "Aborting apex mounts due to broken environment..." >&2;
|
||||
break;
|
||||
fi;
|
||||
fi;
|
||||
fi;
|
||||
;;
|
||||
|
||||
Reference in new issue
Block a user