Re: [PATCH 1/4] If a mountpoint depends on a network disk at _netdev to its fstab options

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

 



Looks OK, Martin

----- "Hans de Goede" <hdegoede@xxxxxxxxxx> wrote:

> ---
>  storage/__init__.py |    8 ++++++++
>  1 files changed, 8 insertions(+), 0 deletions(-)
> 
> diff --git a/storage/__init__.py b/storage/__init__.py
> index 6bb7a84..58f7fbf 100644
> --- a/storage/__init__.py
> +++ b/storage/__init__.py
> @@ -1603,6 +1603,7 @@ class FSSet(object):
>  
>          devices = self.mountpoints.values() + self.swapDevices
>          devices.extend([self.devshm, self.devpts, self.sysfs,
> self.proc])
> +        netdevs =
> self.devicetree.getDevicesByInstance(NetworkStorageDevice)
>          for device in devices:
>              # why the hell do we put swap in the fstab, anyway?
>              if not device.format.mountable and device.format.type !=
> "swap":
> @@ -1622,6 +1623,13 @@ class FSSet(object):
>                      continue
>  
>              options = options or "defaults"
> +            for netdev in netdevs:
> +                if device.dependsOn(netdev):
> +                    if mountpoint == "/":
> +                        options = options + ",_rnetdev"
> +                    else:
> +                        options = options + ",_netdev"
> +                    break
>              devspec = device.fstabSpec
>              dump = device.format.dump
>              if device.format.check and mountpoint == "/":
> -- 
> 1.6.1.3
> 
> _______________________________________________
> Anaconda-devel-list mailing list
> Anaconda-devel-list@xxxxxxxxxx
> https://www.redhat.com/mailman/listinfo/anaconda-devel-list

_______________________________________________
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