FAQ Search Today's Posts Mark Forums Read
» Video Reviews

» Linux Archive

Linux-archive is a website aiming to archive linux email lists and to make them easily accessible for linux users/developers.


» Sponsor

» Partners

» Sponsor

Go Back   Linux Archive > Debian > Debian User

 
 
LinkBack Thread Tools
 
Old 11-10-2010, 04:24 PM
David Cantrell
 
Default Disable IPv6 modules for 'noipv6' in /etc/modprobe.conf (#537887)

If users disable IPv6 during installation, modify /etc/modprobe.conf on
the target system rather than creating /etc/modprobe.d/noipv6. Keeps
things consistent with the rest of the modprobe changes in anaconda on
rhel5-branch.
---
network.py | 7 +++----
packages.py | 1 -
2 files changed, 3 insertions(+), 5 deletions(-)

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)
")
+ iutil.mkdirChain(instPath + "/etc")
+ f = open(instPath + "/etc/modprobe.conf", "w")
f.write("alias net-pf-10 off
")
f.write("alias ipv6 off
")
f.write("options ipv6 disable=1
")
diff --git a/packages.py b/packages.py
index c030eba..a1a6e56 100644
--- a/packages.py
+++ b/packages.py
@@ -209,7 +209,6 @@ def setFileCons(anaconda):
"/etc/blkid.tab", "/etc/blkid.tab.old",
"/etc/mtab", "/etc/fstab", "/etc/resolv.conf",
"/etc/modprobe.conf", "/etc/modprobe.conf~",
- "/etc/modprobe.d/noipv6",
"/var/log/wtmp", "/var/run/utmp",
"/dev/log", "/var/lib/rpm", "/", "/etc/raidtab",
"/etc/mdadm.conf", "/etc/hosts", "/etc/sysconfig/network",
--
1.7.3.2

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

Thread Tools




All times are GMT. The time now is 09:36 AM.

VBulletin, Copyright ©2000 - 2014, Jelsoft Enterprises Ltd.
Content Relevant URLs by vBSEO ©2007, Crawlability, Inc.
Copyright 2007 - 2008, www.linux-archive.org