]> git.ipfire.org Git - thirdparty/dracut.git/commitdiff
Ensure rpc_pipefs is mounted
authorJon Ander Hernandez <jonan.h@gmail.com>
Fri, 18 Feb 2011 11:24:06 +0000 (12:24 +0100)
committerHarald Hoyer <harald@redhat.com>
Tue, 29 Mar 2011 14:17:03 +0000 (16:17 +0200)
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.

modules.d/95nfs/nfsroot

index 486c0e1a126421c8610692397a16831f1c132a6d..f4c50517f6c3788ca1656d1d69011bd370b763cb 100755 (executable)
@@ -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