Re: [PATCH] Use device.format.mountType insead of device.format.type for fstab.

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

 



On Tue, 2009-04-28 at 17:06 -0400, Peter Jones wrote:
> If available, use device.format.mountType instead of device.format.type
> when writing out fstab.  This way we write out the real fstype name, not
> the UI name.

Looks good.

> ---
>  storage/__init__.py |    2 +-
>  1 files changed, 1 insertions(+), 1 deletions(-)
> 
> diff --git a/storage/__init__.py b/storage/__init__.py
> index de3f202..d7b53b6 100644
> --- a/storage/__init__.py
> +++ b/storage/__init__.py
> @@ -1802,7 +1802,7 @@ class FSSet(object):
>              if not device.format.mountable and device.format.type != "swap":
>                  continue
>  
> -            fstype = device.format.type
> +            fstype = getattr(device.format, "mountType", device.format.type)
>              if fstype == "swap":
>                  mountpoint = "swap"
>                  options = device.format.options

_______________________________________________
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