static network configuration ask

Kit Stube kstube at gmail.com
Thu Aug 30 23:09:49 UTC 2007


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
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://listman.redhat.com/archives/kickstart-list/attachments/20070830/d9807208/attachment.htm>


More information about the Kickstart-list mailing list