From: Jon Ander Hernandez Date: Fri, 18 Feb 2011 11:24:06 +0000 (+0100) Subject: Ensure rpc_pipefs is mounted X-Git-Tag: 010~16 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=c174aea07decb62d264b40301ee944ba50244438;p=thirdparty%2Fdracut.git Ensure rpc_pipefs is mounted While on some systems (like Fedora) rpc_pipefs is mounted automatically when sunrpc module is loaded, on Debian based systems it needs to be mounted manually. --- diff --git a/modules.d/95nfs/nfsroot b/modules.d/95nfs/nfsroot index 486c0e1a1..f4c50517f 100755 --- a/modules.d/95nfs/nfsroot +++ b/modules.d/95nfs/nfsroot @@ -90,6 +90,9 @@ options=${options:+$options,}$nfsrw [ -x /sbin/rpcbind ] && [ -z "$(pidof rpcbind)" ] && rpcbind if [ "$nfs" = "nfs4" ]; then + [ ! -d /var/lib/nfs/rpc_pipefs/nfs ] && \ + mount -t rpc_pipefs rpc_pipefs /var/lib/nfs/rpc_pipefs + # Start rpc.statd as mount won't let us use locks on a NFSv4 # filesystem without talking to it. NFSv4 does locks internally, # rpc.lockd isn't needed