Patchwork [08/11] contrib: Simplify fedfs-utils package installation on FedFS clients

login
register
mail settings
Submitter Chuck Lever
Date July 2, 2013, 7:31 p.m.
Message ID <20130702193128.48202.1760.stgit@manray.1015granger.net>
Download mbox | patch
Permalink /patch/256491/
State Accepted
Headers show

Comments

Chuck Lever - July 2, 2013, 7:31 p.m.
Instead of editing /etc/auto.master, the fedfs-map-nfs4 program map
can be enabled by adding a configuration file under
/etc/auto.master.d .

Signed-off-by: Chuck Lever <chuck.lever@oracle.com>
---
 contrib/init/Makefile.am  |    3 ++-
 contrib/init/README       |    2 ++
 contrib/init/fedfs.autofs |    1 +
 3 files changed, 5 insertions(+), 1 deletion(-)
 create mode 100644 contrib/init/fedfs.autofs

Patch

diff --git a/contrib/init/Makefile.am b/contrib/init/Makefile.am
index c8740ff..7e3dd66 100644
--- a/contrib/init/Makefile.am
+++ b/contrib/init/Makefile.am
@@ -23,7 +23,8 @@ 
 ##	http://www.gnu.org/licenses/old-licenses/gpl-2.0.txt
 ##
 
-EXTRA_DIST		= fedfs README rpcfedfsd rpcfedfsd.service
+EXTRA_DIST		= fedfs README rpcfedfsd rpcfedfsd.service \
+			  fedfs.autofs
 
 CLEANFILES		= cscope.in.out cscope.out cscope.po.out *~
 DISTCLEANFILES		= Makefile.in
diff --git a/contrib/init/README b/contrib/init/README
index 45ed56a..ae3f941 100644
--- a/contrib/init/README
+++ b/contrib/init/README
@@ -24,3 +24,5 @@  rpcfedfsd		Sample SysV start-up script for rpc.fedfsd; typically
 rpcfedfsd.service	Sample systemd service file for rpc.fedfsd; see
 			http://0pointer.de/blog/projects/systemd-for-admins-3.html
 			for further details
+
+fedfs.autofs		Copy into /etc/auto.master.d to enable /nfs4 program map
diff --git a/contrib/init/fedfs.autofs b/contrib/init/fedfs.autofs
new file mode 100644
index 0000000..9ee170a
--- /dev/null
+++ b/contrib/init/fedfs.autofs
@@ -0,0 +1 @@ 
+/nfs4 /usr/sbin/fedfs-map-nfs4