rpms/udev/devel start_udev, 1.69, 1.70 udev-post.init, 1.5, 1.6 udev.spec, 1.237, 1.238

Harald Hoyer (harald) fedora-extras-commits at redhat.com
Thu Mar 13 16:46:10 UTC 2008


Author: harald

Update of /cvs/pkgs/rpms/udev/devel
In directory cvs-int.fedora.redhat.com:/tmp/cvs-serv24257

Modified Files:
	start_udev udev-post.init udev.spec 
Log Message:
* Thu Mar 13 2008 Harald Hoyer <harald at redhat.com> 118-9
- added more support for the "modprobedebug" kernel command 
  line option, to debug hanging kernel modules



Index: start_udev
===================================================================
RCS file: /cvs/pkgs/rpms/udev/devel/start_udev,v
retrieving revision 1.69
retrieving revision 1.70
diff -u -r1.69 -r1.70
--- start_udev	13 Mar 2008 15:28:17 -0000	1.69
+++ start_udev	13 Mar 2008 16:45:35 -0000	1.70
@@ -217,9 +217,8 @@
 	/sbin/udevd -d
 	ret=$[$ret + $?]
 
-	if strstr "$cmdline" modprobedebug; then
-		/sbin/udevcontrol env MODPROBE_OPTIONS="-s -v -q"
-	fi
+	udevtimeout=$(getval udevtimeout $cmdline)
+
 	if strstr "$cmdline" udevdebug; then
 		/sbin/udevcontrol log_priority=debug
 	fi
@@ -242,9 +241,21 @@
 	fi	  
 
         /sbin/udevcontrol env STARTUP=1
+
+	if strstr "$cmdline" modprobedebug; then
+		/sbin/udevcontrol env MODPROBE_OPTIONS="-s -v -q"
+		echo
+		for i in $(find /sys -name modalias); do 
+		    modules=$(cat $i)
+		    modprobe -a -v -q $modules 
+		    wait_for_queue $udevtimeout
+		done
+		echo "Triggering Rest"
+	fi
+
 	/sbin/udevtrigger
 	ret=$[$ret + $?]
-	wait_for_queue $(getval udevtimeout $cmdline)
+	wait_for_queue $udevtimeout
 	ret=$[$ret + $?]
 	wait
 	/sbin/udevcontrol env STARTUP=


Index: udev-post.init
===================================================================
RCS file: /cvs/pkgs/rpms/udev/devel/udev-post.init,v
retrieving revision 1.5
retrieving revision 1.6
diff -u -r1.5 -r1.6
--- udev-post.init	13 Mar 2008 15:28:17 -0000	1.5
+++ udev-post.init	13 Mar 2008 16:45:35 -0000	1.6
@@ -36,6 +36,7 @@
 				# use a little caching to speedup things
 				md5=$(/usr/bin/md5sum "$i"|(read a b; echo $a))
 				md5file="/var/lib/udev/makedev.d/${md5}.sh"
+
 				if [ ! -f "$md5file" ]; then
 					echo -n $STRING 
 					( sed -e 's,#.*,,g' "$i" | \


Index: udev.spec
===================================================================
RCS file: /cvs/pkgs/rpms/udev/devel/udev.spec,v
retrieving revision 1.237
retrieving revision 1.238
diff -u -r1.237 -r1.238
--- udev.spec	13 Mar 2008 15:28:17 -0000	1.237
+++ udev.spec	13 Mar 2008 16:45:35 -0000	1.238
@@ -6,7 +6,7 @@
 Summary: A userspace implementation of devfs
 Name: udev
 Version: 118
-Release: 8%{?dist}
+Release: 9%{?dist}
 License: GPLv2
 Group: System Environment/Base
 Provides: udev-persistent = %{version}-%{release}
@@ -412,6 +412,10 @@
 %{_libdir}/pkgconfig/libvolume_id.pc 
 
 %changelog
+* Thu Mar 13 2008 Harald Hoyer <harald at redhat.com> 118-9
+- added more support for the "modprobedebug" kernel command 
+  line option, to debug hanging kernel modules
+
 * Thu Mar 13 2008 Harald Hoyer <harald at redhat.com> 118-8
 - added /etc/sysconfig/udev to configure some speedups
 - added "udevnopersist" as a kernel command line, to disable




More information about the fedora-extras-commits mailing list