SVN: geninitrd/trunk/geninitrd

arekm arekm at pld-linux.org
Thu Jan 13 21:20:40 CET 2011


Author: arekm
Date: Thu Jan 13 21:20:40 2011
New Revision: 12044

Modified:
   geninitrd/trunk/geninitrd
Log:
Avoid error when no configs module.

Modified: geninitrd/trunk/geninitrd
==============================================================================
--- geninitrd/trunk/geninitrd	(original)
+++ geninitrd/trunk/geninitrd	Thu Jan 13 21:20:40 2011
@@ -285,7 +285,7 @@
 #
 # Ripped and adjusted for geninitrd from linux-2.6.34/scripts/extract-ikconfig
 extract-ikconfig() {
-	local kofile=$(modinfo -k $kernel -n configs)
+	local kofile=$(modinfo -k $kernel -n configs 2> /dev/null)
 	if [ -z "$kofile" ]; then
 		return
 	fi


More information about the pld-cvs-commit mailing list