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

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



Package: udev
Version: 0.105-3
Severity: normal
Tags: patch

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?

--
David Härdeman

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: