[PATCH rhel5-branch] Fix NFS mounting (#841136)

Jesse Keating jkeating at redhat.com
Wed Jul 18 15:52:21 UTC 2012


Newer nfs-utils and mount.nfs use tcp by default.  If we don't in our
own mounting code we will not be able to mount the share.  This change
just duplicates the same change made in busybox to make mounting
function again.
---
 isys/nfsmount.c |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/isys/nfsmount.c b/isys/nfsmount.c
index 21ad20d..ba63e92 100644
--- a/isys/nfsmount.c
+++ b/isys/nfsmount.c
@@ -355,7 +355,7 @@ int nfsmount(const char *spec, const char *node, int *flags,
 	nolock = 0;
 	noac = 0;
 	retry = 10000;		/* 10000 minutes ~ 1 week */
-	tcp = 0;
+	tcp = 1;		/* nfs-utils uses tcp per default */
 
 	mountprog = MOUNTPROG;
 	mountvers = 0;
-- 
1.7.10.4



More information about the anaconda-patches mailing list