[PATCH rhel7-branch] network: pass team opts to dracut for netroot (#1075666)

Vratislav Podzimek vpodzime at redhat.com
Mon Jan 19 14:53:07 UTC 2015


On Mon, 2015-01-19 at 15:37 +0100, Radek Vykydal wrote:
> Resolves: rhbz#1075666
> ---
>  pyanaconda/network.py | 5 +++++
>  1 file changed, 5 insertions(+)
> 
> diff --git a/pyanaconda/network.py b/pyanaconda/network.py
> index 05583b9..f86b0c2 100644
> --- a/pyanaconda/network.py
> +++ b/pyanaconda/network.py
> @@ -365,6 +365,11 @@ def dracutBootArguments(devname, ifcfg, storage_ipaddr, hostname=None):
>          if hwaddr:
>              netargs.add("ifname=%s:%s" % (devname, hwaddr.lower()))
>  
> +        if ifcfg.get("TYPE") == "Team" or ifcfg.get("DEVICETYPE") == "Team":
> +            slaves = get_team_slaves([devname, ifcfg.get("UUID")])
> +            netargs.add("team=%s:%s" % (devname,
> +                                        ",".join(dev for dev, _cfg in slaves)))
> +
>      nettype = ifcfg.get("NETTYPE")
>      subchannels = ifcfg.get("SUBCHANNELS")
>      if blivet.arch.isS390() and nettype and subchannels:
ACK.

-- 
Vratislav Podzimek

Anaconda Rider | Red Hat, Inc. | Brno - Czech Republic



More information about the anaconda-patches mailing list