[readonly/geninitrd/devel: 197/334] Load ide-generic if no other IDE related modules found.

draenog draenog at pld-linux.org
Sat Nov 2 19:28:05 CET 2013


commit 2b9bd02cae63f80924955a47b8830f5e857db431
Author: Arkadiusz Miśkiewicz <arekm at maven.pl>
Date:   Fri Apr 2 23:12:33 2004 +0000

    Load ide-generic if no other IDE related modules found.
    
    svn-id: @3862

 geninitrd | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)
---
diff --git a/geninitrd b/geninitrd
index e425704..219a17d 100755
--- a/geninitrd
+++ b/geninitrd
@@ -523,6 +523,7 @@ END {
 				done
     				idemodules="${new_idemodules}"
 			fi
+			[ -z "$idemodules" ] && idemodules="ide-generic"
     			for nd in $idemodules; do
     			    findmodule "-$nd"
     			done
@@ -570,7 +571,7 @@ find_modules_for() {
 			findmodule "$n"
 		done
 	# check to see if we need to set up a loopback filesystem
-	elif is_yes "`echo "$1" | awk -F/ '{print($3);}' | awk '/loop/ { print "yes"; }'`" ; then
+	elif [ 1 -eq 0 ] && is_yes "`echo "$1" | awk -F/ '{print($3);}' | awk '/loop/ { print "yes"; }'`" ; then
 		echo "Sorry, root on loop device isn't supported." 1>&2
 		exit 1
 		# TODO: rewrite for bsp and make nfs ready
================================================================

---- gitweb:

http://git.pld-linux.org/gitweb.cgi/readonly/geninitrd.git/commitdiff/398807324938659207036e520c0950a61ef50c11



More information about the pld-cvs-commit mailing list