[PATCH] Don't set ibft device renaming for dracut, let it just do its job (#828505)

Vratislav Podzimek vpodzime at redhat.com
Wed Mar 13 12:15:47 UTC 2013


On Wed, 2013-03-13 at 12:47 +0100, Radek Vykydal wrote:
> We need also modify dracut to write out BOOTPROTO=ibft for ip=ibft
> ---
>  pyanaconda/network.py | 6 +++---
>  1 file changed, 3 insertions(+), 3 deletions(-)
> 
> diff --git a/pyanaconda/network.py b/pyanaconda/network.py
> index 9ed2bc7..1f05a6c 100644
> --- a/pyanaconda/network.py
> +++ b/pyanaconda/network.py
> @@ -390,9 +390,9 @@ def dracutBootArguments(ifcfg, storage_ipaddr, hostname=None):
>                  netargs.add("ip=%s::%s:%s:%s:%s:none" % (ifcfg.get('ipaddr'),
>                             gateway, netmask, hostname, devname))
>  
> -    hwaddr = ifcfg.get("HWADDR")
> -    if hwaddr:
> -        netargs.add("ifname=%s:%s" % (devname, hwaddr.lower()))
> +        hwaddr = ifcfg.get("HWADDR")
> +        if hwaddr:
> +            netargs.add("ifname=%s:%s" % (devname, hwaddr.lower()))
>  
>      nettype = ifcfg.get("NETTYPE")
>      subchannels = ifcfg.get("SUBCHANNELS")
ACK.

-- 
Vratislav Podzimek

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



More information about the anaconda-patches mailing list