static network configuration ask

Kit Stube kstube at gmail.com
Thu Aug 30 23:03:52 UTC 2007


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?

On 8/30/07, Ed Brown <ebrown at lanl.gov> 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
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://listman.redhat.com/archives/kickstart-list/attachments/20070830/5893d8ac/attachment.htm>


More information about the Kickstart-list mailing list