Harald Hoyer d97cfa
From c174aea07decb62d264b40301ee944ba50244438 Mon Sep 17 00:00:00 2001
Harald Hoyer d97cfa
From: Jon Ander Hernandez <jonan.h@gmail.com>
Harald Hoyer d97cfa
Date: Fri, 18 Feb 2011 12:24:06 +0100
Harald Hoyer d97cfa
Subject: [PATCH] Ensure rpc_pipefs is mounted
Harald Hoyer d97cfa
Harald Hoyer d97cfa
While on some systems (like Fedora) rpc_pipefs is mounted
Harald Hoyer d97cfa
automatically when sunrpc module is loaded, on Debian based systems it
Harald Hoyer d97cfa
needs to be mounted manually.
Harald Hoyer d97cfa
---
Harald Hoyer d97cfa
 modules.d/95nfs/nfsroot |    3 +++
Harald Hoyer d97cfa
 1 files changed, 3 insertions(+), 0 deletions(-)
Harald Hoyer d97cfa
Harald Hoyer d97cfa
diff --git a/modules.d/95nfs/nfsroot b/modules.d/95nfs/nfsroot
Harald Hoyer d97cfa
index 486c0e1..f4c5051 100755
Harald Hoyer d97cfa
--- a/modules.d/95nfs/nfsroot
Harald Hoyer d97cfa
+++ b/modules.d/95nfs/nfsroot
Harald Hoyer d97cfa
@@ -90,6 +90,9 @@ options=${options:+$options,}$nfsrw
Harald Hoyer d97cfa
 [ -x /sbin/rpcbind ] && [ -z "$(pidof rpcbind)" ] && rpcbind
Harald Hoyer d97cfa
 
Harald Hoyer d97cfa
 if [ "$nfs" = "nfs4" ]; then
Harald Hoyer d97cfa
+    [ ! -d /var/lib/nfs/rpc_pipefs/nfs ] && \
Harald Hoyer d97cfa
+         mount -t rpc_pipefs rpc_pipefs /var/lib/nfs/rpc_pipefs
Harald Hoyer d97cfa
+
Harald Hoyer d97cfa
     # Start rpc.statd as mount won't let us use locks on a NFSv4
Harald Hoyer d97cfa
     # filesystem without talking to it. NFSv4 does locks internally,
Harald Hoyer d97cfa
     # rpc.lockd isn't needed