diff options
author | David Cantrell <dcantrell@redhat.com> | 2008-09-29 18:38:51 -1000 |
---|---|---|
committer | David Cantrell <dcantrell@redhat.com> | 2008-09-29 18:40:12 -1000 |
commit | ee182de8bff85cfb62495c4d9d95716aebc94aef (patch) | |
tree | cc73d5321a138058e5507b45fe25e317631d761f /textw/netconfig_text.py | |
parent | 46469d38c5bed017383a90d5138979b6afc71a07 (diff) | |
download | anaconda-ee182de8bff85cfb62495c4d9d95716aebc94aef.tar.gz anaconda-ee182de8bff85cfb62495c4d9d95716aebc94aef.tar.xz anaconda-ee182de8bff85cfb62495c4d9d95716aebc94aef.zip |
Fix static network configuration from boot.iso installs.
Make sure we write out BOOTPROTO=static and that we add the
GATEWAY line to the ifcfg-DEVICE file, otherwise we get an
incomplete network configuration from NetworkManager.
Diffstat (limited to 'textw/netconfig_text.py')
-rw-r--r-- | textw/netconfig_text.py | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/textw/netconfig_text.py b/textw/netconfig_text.py index 5ba88ff4b..8efeb5d18 100644 --- a/textw/netconfig_text.py +++ b/textw/netconfig_text.py @@ -98,7 +98,7 @@ class NetworkConfiguratorText: devs = netdevs.keys() devs.sort() for dev in devs: - desc = netdevs[dev].get("desc") + desc = netdevs[dev].get("DESC") if desc: desc = "%s - %s" % (dev, desc) else: @@ -177,11 +177,12 @@ class NetworkConfiguratorText: continue netdev = netdevs[devname] + netdev.set(("ONBOOT", "yes")) if self.dhcpCheckbox.selected(): netdev.set(("BOOTPROTO", "dhcp")) - netdev.set(("ONBOOT", "yes")) else: + netdev.set(("BOOTPROTO", "static")) ipv4addr = self.ipv4Address.value() ipv4nm = self.ipv4Netmask.value() gateway = self.gatewayEntry.value() @@ -225,6 +226,7 @@ class NetworkConfiguratorText: try: if gateway: network.sanityCheckIPString(gateway) + netdev.set(("GATEWAY", gateway)) except network.IPMissing, msg: self._handleIPMissing(_("Gateway")) continue |