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

Bug#401916: udev: Add support for the ROOTDELAY parameter



On Wed, Mar 14, 2007 at 02:00:38AM +0100, David Härdeman wrote:
> Package: udev
> Version: 0.105-3
> Severity: normal
> Tags: patch

important at least.
retitle udev: Add support for very early ROOTDELAY parameter

 
> Hi,
> 
> maks downgraded #401916 (and #366175) from RC severity with the 
> understanding that something like the attached patch would be applied 
> to the udev initramfs script before the release of Etch to allow people 
> with affected systems some kind of manual workaround at least.
> 
> I'm not setting the severity to R-C, but I'd like to know whether others 
> (maks, Marco, RM's) think this should go in?

ack
for belows patch.

the purpose is that udev is run very early and if there is an
async driver to be loaded the user has a powerful bootparam
to keep his box up.

current rootdelay kicks in to late (on root mount) and doesn't
work for lilo or md/evms/lvm root settings.

hope aboves explanation make the job for the decision to
put that in easier.

best regards
maks
 

> diff -ur ./udev-0.105.orig/extra/initramfs.premount ./udev-0.105/extra/initramfs.premount
> --- ./udev-0.105.orig/extra/initramfs.premount	2007-03-14 01:48:20.000000000 +0100
> +++ ./udev-0.105/extra/initramfs.premount	2007-03-14 01:55:12.000000000 +0100
> @@ -20,5 +20,17 @@
>  udevtrigger
>  udevsettle || true
>  
> +# If the rootdelay parameter has been set, we wait a bit for devices
> +# like usb/firewire disks to settle
> +if [ -n "$ROOTDELAY" ]; then
> +	if [ -x /sbin/usplash_write ]; then
> +		/sbin/usplash_write "TIMEOUT $(($ROOTDELAY + 5))"
> +	fi
> +	sleep $ROOTDELAY
> +	if [ -x /sbin/usplash_write ]; then
> +		/sbin/usplash_write "TIMEOUT 15"
> +	fi
> +fi
> +
>  # Leave udev running to process events that come in out-of-band (like USB
>  # connections)




Reply to: