[readonly/geninitrd: 548/1068] - nfs root patch from wolvverine, with spelling fixes

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


commit 7eccec8ed90b6691498e95d5f005b01befc91636
Author: Elan Ruusamäe <glen at pld-linux.org>
Date:   Sun Jan 20 05:44:55 2008 +0000

    - nfs root patch from wolvverine, with spelling fixes
    
    svn-id: @9188

 geninitrd | 16 +++++++++++-----
 1 file changed, 11 insertions(+), 5 deletions(-)
---
diff --git a/geninitrd b/geninitrd
index 476f349..9904d8b 100755
--- a/geninitrd
+++ b/geninitrd
@@ -855,11 +855,17 @@ find_modules_for_devpath() {
 		if [ ! -x /usr/bin/pcidev -a -z "$NFS_ETH_MODULES" ]; then
 			die "root on NFS but /usr/bin/pcidev not found. Please install correct pci-database package and rerun $PROGRAM."
 		fi
-		local m
-		[ -z "$NFS_ETH_MODULES" ] && NFS_ETH_MODULES=$(/usr/bin/pcidev /m net | xargs)
-		for m in $NFS_ETH_MODULES; do
-			findmodule "$m"
-		done
+		if [ ! -f /proc/bus/pci/devices ]; then
+			warn "Remember to add network card modules in /etc/sysconfig/geninitrd, example:"
+			warn "BASICMODULES=\"e1000 ne2k-pci mii 8139too 3c59x\""
+		else
+			local m
+			[ -z "$NFS_ETH_MODULES" ] && NFS_ETH_MODULES=$(/usr/bin/pcidev /m net | xargs)
+			warn "NOTE: Network card(s) module(s) $NFS_ETH_MODULES is for this machine"
+			for m in $NFS_ETH_MODULES; do
+				findmodule "$m"
+			done
+		fi
 		findmodule "-ipv4"
 		findmodule "nfs"
 		have_nfs=yes
================================================================

---- gitweb:

http://git.pld-linux.org/gitweb.cgi/readonly/geninitrd.git/commitdiff/147754ca159d40ca5eb541074dc043d8cbd92090



More information about the pld-cvs-commit mailing list