Re: [PATCH 1/3] Disable IPv6 modules for 'noipv6' in /etc/modprobe.conf (#537887)

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



> diff --git a/network.py b/network.py
> index d79abc7..227a19e 100644
> --- a/network.py
> +++ b/network.py
> @@ -604,11 +604,10 @@ class Network:
>  
>          f.close()
>  
> -        # /etc/modprobe.d/noipv6
> +        # /etc/modprobe.conf
>          if useIPv6 == "no":
> -            iutil.mkdirChain(instPath + "/etc/modprobe.d")
> -            f = open(instPath + "/etc/modprobe.d/noipv6", "w")
> -            f.write("# Disable IPv6 kernel modules (added by anaconda)\n")
> +            iutil.mkdirChain(instPath + "/etc")
> +            f = open(instPath + "/etc/modprobe.conf", "w")
>              f.write("alias net-pf-10 off\n")
>              f.write("alias ipv6 off\n")
>              f.write("options ipv6 disable=1\n")

Don't you want to open for appending instead of writing here?

- Chris

_______________________________________________
Anaconda-devel-list mailing list
Anaconda-devel-list@xxxxxxxxxx
https://www.redhat.com/mailman/listinfo/anaconda-devel-list


[Index of Archives]     [Kickstart]     [Fedora Users]     [Fedora Legacy List]     [Fedora Maintainers]     [Fedora Desktop]     [Fedora SELinux]     [Big List of Linux Books]     [Yosemite News]     [Yosemite Photos]     [KDE Users]     [Fedora Tools]
  Powered by Linux