<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
  <meta content="text/html;charset=ISO-8859-1" http-equiv="Content-Type">
</head>
<body bgcolor="#ffffff" text="#000000">
<font size="-1"><font face="sans-serif"><br>
</font></font>Kyle Powell wrote:
<blockquote cite="mid:49CA76F6.5060407@redhat.com" type="cite">
  <pre wrap="">-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Matt Rose wrote:
  </pre>
  <blockquote type="cite">
    <pre wrap="">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?
    </pre>
  </blockquote>
  <pre wrap=""><!---->
You patched anaconda and now it's not working. Your patch is only two lines. My
guess would be self.ksdata.network is always evaluating as true, which is
causing network to always be skipped. Add some debug code to confirm this.
  </pre>
</blockquote>
<font size="-1"><font face="sans-serif">The debug code is what led me
to write the patch.  Well, that and some digging around in kickstart.py.<br>
<br>
If you read kickstart.py, it always calls dispatch.skipStep("network"),
no matter whether or not the network configuration is specified. <br>
<br>
the patch I posted
actually gets it to work as expected, and not call</font></font><font
 size="-1"><font face="sans-serif"> dispatch.skipStep("network")</font></font><font
 size="-1"><font face="sans-serif"> if there's no "network" command in
the ks.cfg. <br>
<br>
without the patch, the network
configuration step is *always* skipped, no matter whether I specify a
network entry in ks.cfg or not.<br>
<br>
<br>
To put it in more "bug" terms, without the patch underneath, the
following ks.cfg does *not* bring up the network configuration screen,
even though I expect it to.<br>
<br>
</font></font><font size="-1"><tt>install<br>
cdrom<br>
lang en_US.UTF-8<br>
keyboard us<br>
rootpw --iscrypted "$1$Q8UIYpca$uHhNzcR8qKtzFAa4Z.zmq."<br>
firewall --disabled<br>
authconfig --enableshadow --enablemd5<br>
text<br>
skipx<br>
selinux --disabled<br>
timezone --utc America/New_York<br>
reboot<br>
bootloader --location=mbr<br>
autopart<br>
<br>
%pre<br>
<br>
%packages<br>
@base<br>
<br>
%post</tt></font><font size="-1"><font face="sans-serif"><br>
<br>
Mind you, I'm not sure whether my expectations are correct. <br>
<br>
The patch I attached "fixes" this behaviour so that the network
configuration dialog is brought up, if there is no "network" option in
the ks.cfg<br>
<br>
Matt</font></font><br>
<br>
<blockquote cite="mid:49CA76F6.5060407@redhat.com" type="cite">
  <pre wrap="">- --
Kyle Powell | Red Hat | Senior Consultant, RHCE | Cell: 571.215.4340
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.7 (GNU/Linux)
Comment: Using GnuPG with Fedora - <a class="moz-txt-link-freetext" href="http://enigmail.mozdev.org">http://enigmail.mozdev.org</a>

iD8DBQFJynb27pTtanQdBU4RAg+cAJ9ROB1o/Oi8Cg5FyE5uT5TuIbTJ8gCdHhZM
xlB6qKnvbH/gAGZZZZrjlTI=
=o6zk
-----END PGP SIGNATURE-----

_______________________________________________
Kickstart-list mailing list
<a class="moz-txt-link-abbreviated" href="mailto:Kickstart-list@redhat.com">Kickstart-list@redhat.com</a>
<a class="moz-txt-link-freetext" href="https://www.redhat.com/mailman/listinfo/kickstart-list">https://www.redhat.com/mailman/listinfo/kickstart-list</a>
  </pre>
</blockquote>
</body>
</html>