From: Warren Togami Date: Tue, 30 Jun 2009 22:22:44 +0000 (-0400) Subject: Fix legacy root=/dev/nfs nfsroot=IP:path case X-Git-Tag: 0.2~10 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=9d4c1799feb7ad9e2ffd9d5cb21ee6115ba2f162;p=thirdparty%2Fdracut.git Fix legacy root=/dev/nfs nfsroot=IP:path case TODO: root=/dev/nfs DHCP cases are still broken. --- diff --git a/modules.d/95nfs/parse-nfsroot.sh b/modules.d/95nfs/parse-nfsroot.sh index b5b5cd6c4..f05fb2aff 100755 --- a/modules.d/95nfs/parse-nfsroot.sh +++ b/modules.d/95nfs/parse-nfsroot.sh @@ -72,15 +72,6 @@ netroot_to_var() { [ -z "$netroot" ] && netroot=$(getarg netroot=) [ -z "$nfsroot" ] && nfsroot=$(getarg nfsroot=) -# nfsroot= is valid only if root=/dev/nfs -if [ -n "$nfsroot" ] ; then - # @deprecated - warn "Argument nfsroot is deprecated and might be removed in a future release. See http://apps.sourceforge.net/trac/dracut/wiki/commandline for more information." - if [ "$(getarg root=)" != "/dev/nfs" ]; then - die "Argument nfsroot only accepted for legacy root=/dev/nfs" - fi -fi - # netroot= cmdline argument must be ignored, but must be used if # we're inside netroot to parse dhcp root-path if [ -n "$netroot" ] ; then @@ -92,7 +83,17 @@ else netroot=$root; fi -# Handle old style :/:/