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

Brian C. Lane bcl at redhat.com
Tue Oct 1 18:21:22 UTC 2013


On Tue, Oct 01, 2013 at 11:55:23AM -0400, David Shea wrote:
> ---
>  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

We already do this in the iutil.parseNfsUrl. It would be good if we
could keep this logic in one place.

-- 
Brian C. Lane | Anaconda Team | IRC: bcl #anaconda | Port Orchard, WA (PST8PDT)
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 482 bytes
Desc: not available
URL: <https://lists.fedorahosted.org/pipermail/anaconda-patches/attachments/20131001/f8cedeca/attachment.sig>


More information about the anaconda-patches mailing list