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

Bug#401916:



[ adding mika on cc ]

On Thu, Feb 01, 2007 at 04:38:03PM +0100, David Härdeman wrote:
> Looking at:
> http://cvs.mandriva.com/cgi-bin/viewvc.cgi/gi/tools/draklive?revision=1.116&view=markup
> 
> there's an interesting line which sleeps while the usb storage scanning
> kernel thread is running (search the page for usb-stor-scan).
> 
> The usb scanning thread is called usb-stor-scan and the scsi scanning
> threads are called scsi_scan_NUM (AFAIK).
> 
> So, as a workaround for Etch until this is fixed (presumably by upstream
> changes to udev and/or the kernel), how about changing the following lines
> in the udev initramfs script:
> 
>   udevtrigger
>   udevsettle || true
> 
> to something like this:
> 
>   udevtrigger
>   udevsettle || true
>   while ps | grep -q "[usb-stor-scan]"; do
>       sleep 1;
>   done
>   while ps | grep -q "[scsi_scan_.*]"; do
>       sleep 1;
>   done
>   udevsettle || true

mika, you could reliable trigger that race by using
grml2hd with lilo.
could you please test aboves proposed solution
and tell us how it works out?

thanks a lot for your patience and big kudos for David!!!

--
maks



Reply to: