From: Victor Lowther Date: Fri, 29 May 2009 02:02:14 +0000 (-0500) Subject: Make nfsroot work with hostonly mode. X-Git-Tag: 0.1~158 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=06558b3ee484f20d8529cadf190241614f811a57;p=thirdparty%2Fdracut.git Make nfsroot work with hostonly mode. --- diff --git a/modules.d/40nfsroot/check b/modules.d/40nfsroot/check index 916056de5..a682aa2e1 100755 --- a/modules.d/40nfsroot/check +++ b/modules.d/40nfsroot/check @@ -1,5 +1,5 @@ #!/bin/sh [ "$1" = "-d" ] && echo network +[ "$1" = "-h" ] && ! egrep -q '/ nfs[34 ]' /proc/mounts && exit 1 which rpcbind rpc.statd mount.nfs mount.nfs4 umount >/dev/null 2>&1 || exit 1 - exit 0