[PATCH 2/2] parse-kickstart: handle 'network --ipv6=auto ...'

Will Woods wwoods at redhat.com
Tue Aug 28 21:25:33 UTC 2012


This is kind of silly, since IPV6_AUTOCONF=yes is the default (according
to sysconfig.txt from 'initscripts'). But it might not always be the
default, so let's just make sure we do what the user wants.

Also, it's not our job to set policy; if DHCPV6C=yes should disable
IPV6_AUTOCONF that's up to initscripts/NetworkManager. So leave it alone
otherwise.
---
 dracut/parse-kickstart | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/dracut/parse-kickstart b/dracut/parse-kickstart
index a219118..167a198 100755
--- a/dracut/parse-kickstart
+++ b/dracut/parse-kickstart
@@ -285,7 +285,8 @@ def ksnet_to_ifcfg(net, filename=None):
 
     if net.ipv6 == 'dhcp':
         ifcfg['DHCPV6C'] = "yes"
-        ifcfg['IPV6_AUTOCONF'] = "no"
+    elif net.ipv6 == 'auto':
+        ifcfg['IPV6_AUTOCONF'] = "yes" # NOTE: redundant (this is the default)
     elif ':' in net.ipv6:
         ifcfg['IPV6ADDR'] = net.ipv6
 
-- 
1.7.11.4



More information about the anaconda-patches mailing list