[PATCH 2/5] Fix static and dhcp of network --ipv6 command (set IPV6_AUTOCONF=no)
Martin Sivak
msivak at redhat.com
Thu Jan 31 13:51:22 UTC 2013
Ack.
----- Original Message -----
> ---
> dracut/parse-kickstart | 14 ++++++++------
> 1 file changed, 8 insertions(+), 6 deletions(-)
>
> diff --git a/dracut/parse-kickstart b/dracut/parse-kickstart
> index b88eba7..afca075 100755
> --- a/dracut/parse-kickstart
> +++ b/dracut/parse-kickstart
> @@ -291,12 +291,14 @@ def ksnet_to_ifcfg(net, filename=None):
> else:
> ifcfg['IPV6INIT'] = "yes"
>
> - if net.ipv6 == 'dhcp':
> - ifcfg['DHCPV6C'] = "yes"
> - elif net.ipv6 == 'auto':
> - ifcfg['IPV6_AUTOCONF'] = "yes" # NOTE: redundant (this is
> the default)
> - elif ':' in net.ipv6:
> - ifcfg['IPV6ADDR'] = net.ipv6
> + 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
> + ifcfg['IPV6_AUTOCONF'] = "no"
>
> # misc stuff
> if net.mtu:
> --
> 1.7.11.7
>
> _______________________________________________
> anaconda-patches mailing list
> anaconda-patches at lists.fedorahosted.org
> https://lists.fedorahosted.org/mailman/listinfo/anaconda-patches
>
More information about the anaconda-patches
mailing list