index : mkinitcpio-archiso32 | |
Archlinux32 initcpio scripts used by archiso | 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 | 386c020a682631fe14895961b713b359d2f764cd (patch) | |
tree | c2cde1b3f0d0eb629074b056632ec15cca3bf4a2 /archiso | |
parent | b915eb670e251ff7995680bcfcc6676d55c470f0 (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 |