static network configuration ask
Kit Stube
kstube at gmail.com
Thu Aug 30 23:05:11 UTC 2007
I see what you mean now. I know what to do with this information at this
point. Can I do the same thing in %pre?
Kit
On 8/30/07, Pablo Iranzo Gómez <Pablo.Iranzo at uv.es> wrote:
>
> Hi
>
> On Thu, 30 Aug 2007, 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.
>
> If you put on commandline ip=123.123.123.123
> netmask=234.234.234.234 hostname=host123
>
> On %post you could do:
>
> HOST=`cat /proc/cmdline|tr " " "\n"|grep hostname|cut -d "="
> -f 2`
>
> And when creating the custom /etc/sysconfig/network, fill in the
> value from $HOST
>
> Regards
> Pablo
>
> _______________________________________________
> 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/4ee456fd/attachment.htm>
More information about the Kickstart-list
mailing list