For whatever reason, the hostname is not getting put in /etc/sysconfig/network.   I do not see it after a reboot.   Are you sure this is supposed to happen?<br><br><div><span class="gmail_quote">On 8/30/07, <b class="gmail_sendername">
Ed Brown</b> <<a href="mailto:ebrown@lanl.gov">ebrown@lanl.gov</a>> wrote:</span><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">hostname won't be set during the %post scriptlet without some help,
<br>but it should be set on reboot just fine.  To set it for the sake of<br>commands in %post (for example, if you need to run cfengine):<br><br>hostname `grep HOSTNAME /etc/sysconfig/network |cut -d'=' -f2`<br><br>
But as the above implies, it should already be configured on reboot.<br><br>-Ed<br><br><br><br>Kit Stube wrote:<br>> That worked for the most part. Ed,  your a genious!<br>><br>> The only problem now is that it didn't set the hostname.  Is there some way
<br>> to use something like $hostname in post so I can set all that up?<br>> Perhaps that was what Pablo was trying to tell me?    I don't understand how<br>> to process /proc/commandline.    Does anyone have an example?
<br>> I would be greatly appreciative.<br>><br>> Kit<br>><br>><br>><br>> On 8/30/07, Ed Brown <<a href="mailto:ebrown@lanl.gov">ebrown@lanl.gov</a>> wrote:<br>>>> boot: ip=blah gateway=blah netmask=blah dns=blah
<br>>> This is not quite complete.  And actually, we make a custom boot cd,<br>>> with multiple targets that contain the common parameters, so all<br>>> that's needed at the boot prompt is target, ip and gateway.  You'll
<br>>> probably need at least this:<br>>><br>>> boot: linux ks=<a href="http://url_of_kickstart_file">http://url_of_kickstart_file</a> ip=... gateway=...<br>>> netmask=... dns=...<br>>><br>>> -Ed
<br>>><br>>> _______________________________________________<br>>> Kickstart-list mailing list<br>>> <a href="mailto:Kickstart-list@redhat.com">Kickstart-list@redhat.com</a><br>>> <a href="https://www.redhat.com/mailman/listinfo/kickstart-list">
https://www.redhat.com/mailman/listinfo/kickstart-list</a><br>>><br>><br>><br>> ------------------------------------------------------------------------<br>><br>> _______________________________________________
<br>> Kickstart-list mailing list<br>> <a href="mailto:Kickstart-list@redhat.com">Kickstart-list@redhat.com</a><br>> <a href="https://www.redhat.com/mailman/listinfo/kickstart-list">https://www.redhat.com/mailman/listinfo/kickstart-list
</a><br><br>_______________________________________________<br>Kickstart-list mailing list<br><a href="mailto:Kickstart-list@redhat.com">Kickstart-list@redhat.com</a><br><a href="https://www.redhat.com/mailman/listinfo/kickstart-list">
https://www.redhat.com/mailman/listinfo/kickstart-list</a><br></blockquote></div><br>