summaryrefslogtreecommitdiffstats
path: root/network.py
diff options
context:
space:
mode:
authorDavid Cantrell <dcantrell@redhat.com>2007-01-10 18:57:28 +0000
committerDavid Cantrell <dcantrell@redhat.com>2007-01-10 18:57:28 +0000
commit6c02d696b907125d5a88a04e96ee0f7d96fd2604 (patch)
treef5a97d3603a045826809e88a88003824b814879e /network.py
parenteca21d3744e130752d424688748b89d376057cd7 (diff)
downloadanaconda-6c02d696b907125d5a88a04e96ee0f7d96fd2604.tar.gz
anaconda-6c02d696b907125d5a88a04e96ee0f7d96fd2604.tar.xz
anaconda-6c02d696b907125d5a88a04e96ee0f7d96fd2604.zip
* network.py: Set NETWORKING_IPV6 in /etc/sysconfig/network to
yes or no depending on whether the user enabled or disabled IPv6 during installation (#222147).
Diffstat (limited to 'network.py')
-rw-r--r--network.py6
1 files changed, 3 insertions, 3 deletions
diff --git a/network.py b/network.py
index a589404b3..900e209ff 100644
--- a/network.py
+++ b/network.py
@@ -469,9 +469,9 @@ class Network:
# /etc/sysconfig/network
f = open(instPath + "/etc/sysconfig/network", "w")
- f.write("NETWORKING=yes\n"
- "NETWORKING_IPV6=yes\n"
- "HOSTNAME=")
+ f.write("NETWORKING=yes\n")
+ f.write("NETWORKING_IPV6=%s\n" % self.useIPv6 and "yes" or "no")
+ f.write("HOSTNAME=")
# use instclass hostname if set(kickstart) to override
if self.hostname: