[PATCH] Fix ip= saving in parse-kickstart
Radek Vykydal
rvykydal at redhat.com
Tue Apr 9 08:31:11 UTC 2013
Looks good, thanks.
On 04/08/2013 10:29 PM, Mark Hamzy wrote:
> This fixes the saving of the DNS entry in the ifcfg array. There was a precedence problem.
>
> ---
> dracut/parse-kickstart | 2 +-
> 1 file changed, 1 insertion(+), 1 deletion(-)
>
> diff --git a/dracut/parse-kickstart b/dracut/parse-kickstart
> index d81bdcd..e4c2b9e 100755
> --- a/dracut/parse-kickstart
> +++ b/dracut/parse-kickstart
> @@ -305,7 +305,7 @@ def ksnet_to_ifcfg(net, filename=None):
> ifcfg['MTU'] = net.mtu
> if net.nameserver:
> for i, ip in enumerate(net.nameserver.split(",")):
> - ifcfg["DNS%d" % i+1] = ip
> + ifcfg["DNS%d" % (i+1)] = ip
> if net.nodefroute:
> ifcfg['DEFROUTE'] = "no"
>
More information about the anaconda-patches
mailing list