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

Bug#452448: Versioning of udev.



Package: live-initramfs
severity: wishlist
Version: 1.110.7~20071118.171728

This package uses udev in the initramfs but doesn't depend on it. And if
you have a old version of udev it fails. This patch adds support for one
old udev version and some detection on witch to use.


-- 
Anton Lundin	+46702-161604
-------------- next part --------------
--- live	2007-11-22 23:23:30.000000000 +0100
+++ live.udev	2007-11-22 23:22:17.000000000 +0100
@@ -632,8 +632,15 @@
 
 	modprobe -q af_packet # For DHCP
 
-	udevtrigger
-	udevsettle
+	if [ -e /sbin/udevtrigger && -e /sbin/udevsettle ] ; then
+		/sbin/udevtrigger
+		/sbin/udevsettle
+	else 
+		if [ -e /sbin/udevplug ] ; then
+			/sbin/udevplug -s -Bpci -Iclass=0x02*
+			/sbin/udevplug -Bpci -Iclass=0x0[69ace]*
+		fi
+		# error case?
+	fi
 
 	ipconfig ${DEVICE} | tee /netboot.config
 
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 185 bytes
Desc: not available
Url : http://lists.alioth.debian.org/pipermail/debian-live-devel/attachments/20071122/5a3b7eea/attachment-0001.pgp 


Reply to: