I posted this to the anaconda
list with echoing silence, so I was wondering if someone here could
help me figure out exactly what was going on. Why does anaconda
*always* skip the network configuration step if kickstart is used?
|
--- Begin Message ---
- Subject: network step always skipped in kickstart.py
- From: Matt Rose <mrose@xxxxxxxxxx>
- Date: Tue, 24 Mar 2009 10:43:22 -0400
- Accept-language: en-US
- Reply-to: Discussion of Development and Customization of the Red Hat Linux Installer <anaconda-devel-list@xxxxxxxxxx>
- Thread-index: AcmsjtKBWwt6DVcITj+3FhBLTfBeUw==
- Thread-topic: network step always skipped in kickstart.py
- User-agent: Thunderbird 2.0.0.17 (X11/20080925)
I've built a rudimentary patch
that works around the problem for my purposes, see below, but while
that works with expected behaviour (leave out the network line, it
should ask you to configure a network interface) that seems a little
hacky, as it breaks down as soon as you have more than one interface...
The anaconda docs on the fedora wiki say "--bootproto=query" is the way
to get kickstart to pop up the network configuration dialog. (this
does not work)
anaconda.spec mentions --bootproto=ask in anaconda 11.4, but it was
pulled out shortly after, and obviously doesn't work.
Is this design intent, or something over-looked, or...
Matt
diff --git a/kickstart.py b/kickstart.py
index 82ae00b..3772672 100644
--- a/kickstart.py
+++ b/kickstart.py
@@ -1216,7 +1216,8 @@ def setSteps(anaconda):
dispatch.skipStep("betanag")
dispatch.skipStep("regkey")
dispatch.skipStep("installtype")
- dispatch.skipStep("network")
+ if self.ksdata.network:
+ dispatch.skipStep("network")
# Don't show confirmation screens on non-interactive installs.
if not interactive:
|
_______________________________________________
Anaconda-devel-list mailing list
Anaconda-devel-list@xxxxxxxxxx
https://www.redhat.com/mailman/listinfo/anaconda-devel-list
--- End Message ---
_______________________________________________
Kickstart-list mailing list
Kickstart-list@xxxxxxxxxx
https://www.redhat.com/mailman/listinfo/kickstart-list