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 /iw | |
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 'iw')
-rw-r--r-- | iw/netconfig_dialog.py | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/iw/netconfig_dialog.py b/iw/netconfig_dialog.py index 031316ac4..f8c2cb0e3 100644 --- a/iw/netconfig_dialog.py +++ b/iw/netconfig_dialog.py @@ -182,11 +182,11 @@ class NetworkConfigurator: active = combo.get_active_iter() val = combo.get_model().get_value(active, 1) netdev = self.network.available()[val] + netdev.set(('ONBOOT', 'yes')) # FIXME: need to do input validation if self.xml.get_widget("dhcpCheckbutton").get_active(): netdev.set(('BOOTPROTO', 'dhcp')) - netdev.set(('ONBOOT', 'yes')) self.window.hide() w = gui.WaitWindow(_("Dynamic IP"), _("Sending request for IP information " @@ -195,6 +195,7 @@ class NetworkConfigurator: w.pop() self.rc = gtk.RESPONSE_OK else: + netdev.set(('BOOTPROTO', 'static')) ipv4addr = self.xml.get_widget("ipv4Address").get_text() ipv4nm = self.xml.get_widget("ipv4Netmask").get_text() gateway = self.xml.get_widget("gatewayEntry").get_text() @@ -238,6 +239,7 @@ class NetworkConfigurator: try: if gateway: network.sanityCheckIPString(gateway) + netdev.set(('GATEWAY', gateway)) except network.IPMissing, msg: self._handleIPMissing(_("Gateway")) return False |