index : archiso32 | |
Archlinux32 iso tools | gitolite user |
summaryrefslogtreecommitdiff |
author | Simo Leone <simo@archlinux.org> | 2008-11-13 03:49:25 -0600 |
---|---|---|
committer | Simo Leone <simo@archlinux.org> | 2008-11-13 03:49:25 -0600 |
commit | 460b0f1edc1596cbd0dc5df5671d227a0fc1b780 (patch) | |
tree | 775545b25e9ebb553c5110b174d31154c6d4514f /archiso/hooks | |
parent | 7f1a1411365309d1d50e1eea5935a29d2debab8b (diff) |
-rw-r--r-- | archiso/hooks/archiso | 6 |
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 |