Re: [PATCH] [master] Enable method/repo nfs options in stage2.

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



> diff --git a/isys/isys.py b/isys/isys.py
> index 338ca26..d059db6 100755
> --- a/isys/isys.py
> +++ b/isys/isys.py
> @@ -120,10 +120,11 @@ def unlosetup(device):
>  # @param remount Are we mounting an already mounted filesystem?
>  # @return The return value from the mount system call.
>  def mount(device, location, fstype = "ext2", readOnly = False,
> -          bindMount = False, remount = False, options = "defaults"):
> +          bindMount = False, remount = False, options = None):
>      flags = None
>      location = os.path.normpath(location)
> -    opts = string.split(options)
> +    options = options or "defaults"
> +    opts = options.split(",")
>  
>      # We don't need to create device nodes for devices that start with '/'
>      # (like '/usbdevfs') and also some special fake devices like 'proc'.

I think this is a little confusing, and might better be written as:

    if not options:
        opts = "defaults"
    else:
        opts = options.split(",")

I also note that this changes what options is split on from whitespace
to comma.  Do we pass comma-delimited options throughout anaconda?

Everything else looks okay.

- Chris

_______________________________________________
Anaconda-devel-list mailing list
Anaconda-devel-list@xxxxxxxxxx
https://www.redhat.com/mailman/listinfo/anaconda-devel-list

[Index of Archives]     [Kickstart]     [Fedora Users]     [Fedora Legacy List]     [Fedora Maintainers]     [Fedora Desktop]     [Fedora SELinux]     [Big List of Linux Books]     [Yosemite News]     [Yosemite Photos]     [KDE Users]     [Fedora Tools]
  Powered by Linux