static network configuration ask

Ed Brown ebrown at lanl.gov
Thu Aug 30 23:26:18 UTC 2007


It does the reverse lookup  even before it gets the kickstart file, 
and flashes a screen telling you it's doing that, though often that 
goes by so fast you don't see it.  You can also watch for it on alt-F3 
(or 4?) though.  I don't know when it writes /etc/sysconfig/network, 
but it's there in %post without my doing anything.  You do have have 
the 'network --bootproto=static' line in the kickstart file?

-ed


Kit Stube wrote:
> Come to think of it, I have seen the behavior where the system appears to
> have done a reverse lookup of its self and set it's own hostname.  :-)
> That's perfect.  At what point during the install process does it do that?
> 
> Thanks again for all of the great info everyone.
> 
> Kit
> 
> 
> On 8/30/07, Ed Brown <ebrown at lanl.gov> wrote:
>> To say this another way, it is not necessary to enter hostname as a
>> boot parameter, assuming the ip address can be resolved.
>>
>> Ed Brown wrote:
>>> hostname won't be set during the %post scriptlet without some help, but
>>> it should be set on reboot just fine.  To set it for the sake of
>>> commands in %post (for example, if you need to run cfengine):
>>>
>>> hostname `grep HOSTNAME /etc/sysconfig/network |cut -d'=' -f2`
>>>
>>> But as the above implies, it should already be configured on reboot.
>>>
>>> -Ed
>>>
>>>
>>>
>>> Kit Stube wrote:
>>>> That worked for the most part. Ed,  your a genious!
>>>>
>>>> The only problem now is that it didn't set the hostname.  Is there
>>>> some way
>>>> to use something like $hostname in post so I can set all that up?
>>>> Perhaps that was what Pablo was trying to tell me?    I don't
>>>> understand how
>>>> to process /proc/commandline.    Does anyone have an example?
>>>> I would be greatly appreciative.
>>>>
>>>> Kit
>>>>
>>>>
>>>>
>>>> On 8/30/07, Ed Brown <ebrown at lanl.gov> wrote:
>>>>>> boot: ip=blah gateway=blah netmask=blah dns=blah
>>>>> This is not quite complete.  And actually, we make a custom boot cd,
>>>>> with multiple targets that contain the common parameters, so all
>>>>> that's needed at the boot prompt is target, ip and gateway.  You'll
>>>>> probably need at least this:
>>>>>
>>>>> boot: linux ks=http://url_of_kickstart_file ip=... gateway=...
>>>>> netmask=... dns=...
>>>>>
>>>>> -Ed
>>>>>
>>>>> _______________________________________________
>>>>> Kickstart-list mailing list
>>>>> Kickstart-list at redhat.com
>>>>> https://www.redhat.com/mailman/listinfo/kickstart-list
>>>>>
>>>>
>>>>
>> ------------------------------------------------------------------------
>>>> _______________________________________________
>>>> Kickstart-list mailing list
>>>> Kickstart-list at redhat.com
>>>> https://www.redhat.com/mailman/listinfo/kickstart-list
>>> _______________________________________________
>>> Kickstart-list mailing list
>>> Kickstart-list at redhat.com
>>> https://www.redhat.com/mailman/listinfo/kickstart-list
>> _______________________________________________
>> Kickstart-list mailing list
>> Kickstart-list at redhat.com
>> https://www.redhat.com/mailman/listinfo/kickstart-list
>>
> 
> 
> ------------------------------------------------------------------------
> 
> _______________________________________________
> Kickstart-list mailing list
> Kickstart-list at redhat.com
> https://www.redhat.com/mailman/listinfo/kickstart-list




More information about the Kickstart-list mailing list