]> git.ipfire.org Git - thirdparty/dracut.git/commitdiff
Make nfsroot work with hostonly mode.
authorVictor Lowther <victor.lowther@gmail.com>
Fri, 29 May 2009 02:02:14 +0000 (21:02 -0500)
committerVictor Lowther <victor.lowther@gmail.com>
Fri, 29 May 2009 02:02:14 +0000 (21:02 -0500)
modules.d/40nfsroot/check

index 916056de5848f176f95756bd13b702ab8a65b596..a682aa2e11f3057a121c4730a43f27b212b77992 100755 (executable)
@@ -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