static network configuration ask
Pablo Iranzo Gómez
Pablo.Iranzo at uv.es
Thu Aug 30 22:42:29 UTC 2007
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
More information about the Kickstart-list
mailing list