From: Warren Togami Date: Tue, 30 Jun 2009 21:48:56 +0000 (-0400) Subject: Cleanup parse-nfsroot and NFS tests. X-Git-Tag: 0.2~12 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=297cb80bab40cbe220ba904e0ea45836bef34bb4;p=thirdparty%2Fdracut.git Cleanup parse-nfsroot and NFS tests. TODO: root=/dev/nfs is still broken. --- diff --git a/modules.d/95nfs/parse-nfsroot.sh b/modules.d/95nfs/parse-nfsroot.sh index d68ebe1e5..b5b5cd6c4 100755 --- a/modules.d/95nfs/parse-nfsroot.sh +++ b/modules.d/95nfs/parse-nfsroot.sh @@ -72,7 +72,16 @@ netroot_to_var() { [ -z "$netroot" ] && netroot=$(getarg netroot=) [ -z "$nfsroot" ] && nfsroot=$(getarg nfsroot=) -# Netroot cmdline argument must be ignored, but must be used if +# 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 if [ "$netroot" = "$(getarg netroot=)" ] ; then @@ -84,31 +93,12 @@ else fi # Handle old style :/