Ticket #2023: initramfs-retry-find-cd.patch
File initramfs-retry-find-cd.patch, 1022 bytes (added by , 17 years ago) |
---|
-
init.in
83 83 do_mount_cd() { 84 84 while [ ! -L /dev/lfs-cd ] ; do 85 85 find_cd 86 86 87 if [ ! -L /dev/lfs-cd ] ; then 88 echo "LFS LiveCD not found, retrying a few times." 89 TRIES=5 90 DELAY=6 # 30 seconds total 91 92 for (( i=1 ; i<=$TRIES ; i++ )) ; do 93 [ -L /dev/lfs-cd ] && break 94 95 echo -n "Retry attempt $i of $TRIES... " 96 sleep $DELAY 97 find_cd 98 99 [ -L /dev/lfs-cd ] && echo "success!" || echo "failed!" 100 done 101 fi 102 103 if [ ! -L /dev/lfs-cd ] ; then 87 104 echo "" 88 105 echo "LFS LiveCD could not find its device, perhaps due to" 89 106 echo "unsupported or undetected hardware. Or maybe this is" 90 echo "just a slow SCSI or USB controller that needs some time"107 echo "just a slow SCSI or USB controller that needs more time" 91 108 echo "to settle (workaround: add rootdelay=10 to the kernel" 92 109 echo "command line in the boot loader)." 93 110 echo ""