[Date Prev][Date Next] [Thread Prev][Thread Next]
[Thread Index]
[Date Index]
[Author Index]
Re: static network configuration ask
- From: Pablo Iranzo Gómez <Pablo Iranzo uv es>
- To: Discussion list about Kickstart <kickstart-list redhat com>
- Subject: Re: static network configuration ask
- Date: Fri, 31 Aug 2007 00:42:29 +0200 (CEST)
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
[Date Prev][Date Next] [Thread Prev][Thread Next]
[Thread Index]
[Date Index]
[Author Index]