[PATCH] fix mounting ar_source via NFS

Post there if you plan to contribute to this SystemCd
Post Reply
Posts: 3
Joined: 01 Oct 2015, 15:27

[PATCH] fix mounting ar_source via NFS

Post by gvegidy » 02 Oct 2015, 14:18

Currently the ar_source option does not work with NFS.

Please consider applying the attached fix.

Code: Select all

From 8c4264d6903a9b24baf92d6a964dc62a5b47db4a Mon Sep 17 00:00:00 2001
From: Gerd von Egidy <[email protected]>
Date: Fri, 2 Oct 2015 16:02:07 +0200
Subject: [PATCH] Fix mounting ar_source via NFS

This patch adds the "nolock" option to the nfs mount command. This is needed
as we don't have an rpc.statd running. The latter would be needed for mounting
with the current default mount options (locking on).
 portage-overlay/sys-apps/sysresccd-scripts/files/autorun | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/portage-overlay/sys-apps/sysresccd-scripts/files/autorun b/portage-overlay/sys-apps/sysresccd-scripts/files/autorun
index 5104666..413b5c2 100755
--- a/portage-overlay/sys-apps/sysresccd-scripts/files/autorun
+++ b/portage-overlay/sys-apps/sysresccd-scripts/files/autorun
@@ -130,7 +130,7 @@ def main():
 	elif re.match('^nfs://', ar_source): # mount an nfs share
-		mnt1='mount -t nfs %s %s'%(source, autorunmnt)
+		mnt1='mount -t nfs -o nolock %s %s'%(source, autorunmnt)
 		mnt2='umount %s'%autorunmnt
 		(status, output)=commands.getstatusoutput(mnt1)
 		if status!=0:

Posts: 3
Joined: 01 Oct 2015, 15:27

Re: [PATCH] fix mounting ar_source via NFS

Post by gvegidy » 04 Nov 2015, 14:47


Any chance of getting this change (and my other one) merged?

Post Reply