[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]

Re: static network configuration ask



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 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 redhat com
https://www.redhat.com/mailman/listinfo/kickstart-list


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]