summaryrefslogtreecommitdiffstats
path: root/textw
diff options
context:
space:
mode:
authorDavid Cantrell <dcantrell@redhat.com>2008-02-01 16:48:08 -1000
committerDavid Cantrell <dcantrell@redhat.com>2008-02-01 16:48:08 -1000
commit3db06dee7802729ff373ab13f94ff78bfe50230a (patch)
treebe24edd2a653fbc08577c3077081c501067cdd8b /textw
parent2e8f750887a4304060e88613c68903dcc6f0a977 (diff)
downloadanaconda-3db06dee7802729ff373ab13f94ff78bfe50230a.tar.gz
anaconda-3db06dee7802729ff373ab13f94ff78bfe50230a.tar.xz
anaconda-3db06dee7802729ff373ab13f94ff78bfe50230a.zip
Force users to set a hostname (#408921)
Setting a static hostname will prevent desktop weirdness and application hangs if the system is ever disconnected from the network. This change sets the default hostname option to manual entry.
Diffstat (limited to 'textw')
-rw-r--r--textw/network_text.py14
1 files changed, 2 insertions, 12 deletions
diff --git a/textw/network_text.py b/textw/network_text.py
index a1660aa75..b01e2fb6e 100644
--- a/textw/network_text.py
+++ b/textw/network_text.py
@@ -748,22 +748,12 @@ class HostnameWindow:
if not devices:
return INSTALL_NOOP
- # figure out if the hostname is currently manually set
- if network.anyUsingDHCP(devices):
- if (anaconda.id.network.hostname != "localhost.localdomain" and
- anaconda.id.network.overrideDHCPhostname):
- manual = 1
- else:
- manual = 0
- else:
- manual = 1
-
thegrid = Grid(2, 2)
radio = RadioGroup()
- autoCb = radio.add(_("automatically via DHCP"), "dhcp", not manual)
+ autoCb = radio.add(_("automatically via DHCP"), "dhcp", 0)
thegrid.setField(autoCb, 0, 0, growx = 1, anchorLeft = 1)
- manualCb = radio.add(_("manually"), "manual", manual)
+ manualCb = radio.add(_("manually"), "manual", 1)
thegrid.setField(manualCb, 0, 1, anchorLeft = 1)
hostEntry = Entry(24)
if anaconda.id.network.hostname != "localhost.localdomain":