summaryrefslogtreecommitdiff
path: root/archiso
diff options
context:
space:
mode:
Diffstat (limited to 'archiso')
-rw-r--r--archiso/hooks/archiso6
1 files changed, 5 insertions, 1 deletions
diff --git a/archiso/hooks/archiso b/archiso/hooks/archiso
index c8b6a1b..d3d8736 100644
--- a/archiso/hooks/archiso
+++ b/archiso/hooks/archiso
@@ -12,7 +12,11 @@ _mnt_squashfs()
msg "::: Adding new union branch: ${1}"
/bin/modprobe -q loop >/dev/null 2>&1
mkdir -p "/tmpfs/mnt/loop${LOOP_NUM}"
- if ! /bin/losetup "/dev/loop${LOOP_NUM}" ${1} > /dev/null 2>&1; then
+ # sometimes it takes udev a while to create device nodes
+ until [ -e "/dev/loop${LOOP_NUM}" ]; do
+ sleep 1
+ done
+ if ! /bin/losetup "/dev/loop${LOOP_NUM}" ${1}; then
echo "ERROR: Cannot mount loop device /dev/loop${LOOP_NUM}"
break
fi