[PATCH] Fix ip= saving in parse-kickstart

Mark Hamzy hamzy at us.ibm.com
Mon Apr 8 20:29:41 UTC 2013


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"
 
-- 
1.8.1.4



More information about the anaconda-patches mailing list