[rhel7/master][PATCH] Mount NFS repos with nolock (#1001593)

David Shea dshea at redhat.com
Tue Oct 1 15:55:23 UTC 2013


---
 pyanaconda/packaging/__init__.py | 5 +++++
 1 file changed, 5 insertions(+)

diff --git a/pyanaconda/packaging/__init__.py b/pyanaconda/packaging/__init__.py
index 48d4cbd..7b602ab 100644
--- a/pyanaconda/packaging/__init__.py
+++ b/pyanaconda/packaging/__init__.py
@@ -521,6 +521,11 @@ class Payload(object):
         # mount the specified directory
         url = "%s:%s" % (server, path)
 
+        if not options:
+            options = "nolock"
+        elif "nolock" not in options:
+            options += ",nolock"
+
         try:
             blivet.util.mount(url, mountpoint, fstype="nfs", options=options)
         except OSError as e:
-- 
1.8.3.1



More information about the anaconda-patches mailing list