[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Bug#359922: initramfs-tools: ata drive via usb 'scsi' /dev/sda stops boot, gets busybox



On Wed, Mar 29, 2006 at 09:07:45AM -0600, Harry Coin wrote:
> Package: initramfs-tools
> Version: 0.55b
> Severity: important
> Tags: patch

please upgrade to latest in unstable aka 0.59b.
 
<snipp known timeout bug report>
> which corrected the problem in my hard-drive-via-usb case.  file:  
> 
> /usr/share/initramfs-tools/scripts/init-premount/usbscsiroot
> 
> Content:
> 
> #!/bin/sh 
> 
> PREREQS="udev"
> 
> prereqs() { echo "$PREREQS"; }
> 
> case "$1" in
>     prereqs)
>     prereqs
>     exit 0
>     ;;
> esac
> 
> # The time we wait for udev to work things out
> udevd_timeout=30
> 
> if [ "$ROOT" = "/dev/sda1" ]; then
>   echo "waiting on sda1"
>   while [ ! -b "/dev/sda1" ]; do
>     sleep 1
>     udevd_timeout=$(($udevd_timeout - 1))
>     if [ $udevd_timeout -eq 0 ]; then
> 	break
>     fi
>   done
> fi

yeah not so bad beside the hardcoded device, $ROOT would have been better.
sleep can take decimal seconds args.
 
> Hope this helps.  I searched the net prior to see that others had this
> problem, but I didn't see a published answer.

if you upgraded you whould have seen it ;)
please confirm that 0.59b works for you?
 
it should as the chosen solution was an loop in mountroot.
not fixed is the same timeout in the case of lilo boots,
as there we have to create our own root.

regards

--
maks




Reply to: