diff options
author | Chris Lumens <clumens@redhat.com> | 2008-01-16 14:12:43 -0500 |
---|---|---|
committer | Chris Lumens <clumens@redhat.com> | 2008-01-16 14:29:40 -0500 |
commit | 062a1e5ebbf6dab03524a125c1ce34d3cea43fcb (patch) | |
tree | 8fda306aa721b5cde0f1c14fff5e1d60bce06c62 /kickstart.py | |
parent | 2b73745c33d2ddd302bfd14152e97a05dab75d9b (diff) | |
download | anaconda-062a1e5ebbf6dab03524a125c1ce34d3cea43fcb.tar.gz anaconda-062a1e5ebbf6dab03524a125c1ce34d3cea43fcb.tar.xz anaconda-062a1e5ebbf6dab03524a125c1ce34d3cea43fcb.zip |
Initial support for network --bootproto=ask (#401531).
This patch adds support for a new network bootproto. The point of this is
to work around our basic assumption that no network line in the kickstart
file means you get dhcp. Some environments may want the assumption that
no network line means you get prompted for network configuration. That's
what this patch adds.
Diffstat (limited to 'kickstart.py')
-rw-r--r-- | kickstart.py | 10 |
1 files changed, 7 insertions, 3 deletions
diff --git a/kickstart.py b/kickstart.py index 6b5068355..e5e613129 100644 --- a/kickstart.py +++ b/kickstart.py @@ -334,9 +334,9 @@ class Monitor(commands.monitor.FC6_Monitor): self.handler.id.instClass.setMonitor(self.handler.id, self.hsync, self.vsync, self.monitor) -class Network(commands.network.F8_Network): +class Network(commands.network.F9_Network): def parse(self, args): - commands.network.F8_Network.parse(self, args) + commands.network.F9_Network.parse(self, args) nd = self.network[-1] @@ -1063,7 +1063,11 @@ def setSteps(anaconda): dispatch.skipStep("regkey") dispatch.skipStep("installtype") dispatch.skipStep("tasksel") - dispatch.skipStep("network") + + # Only skip the network screen if there are no devices that used + # network --bootproto=ask. + if len(filter(lambda nd: nd.bootproto == BOOTPROTO_ASK, ksdata.network.network)) == 0: + dispatch.skipStep("network") # Don't show confirmation screens on non-interactive installs. if not interactive: |