[Date Prev][Date Next] [Thread Prev][Thread Next]
[Thread Index]
[Date Index]
[Author Index]
Re: Using variables in kickstart file
- From: Gabrie <thegabeman gmail com>
- To: "Discussion list about Kickstart" <kickstart-list redhat com>
- Subject: Re: Using variables in kickstart file
- Date: Wed, 18 Jul 2007 23:16:40 +0200
On 7/18/07, Shabazian, Chip <Chip Shabazian bankofamerica com> wrote:
boot: yadda yadda yadda ESXIP=10.0.0.20 ESXVMOTION=10.0.2.20
%pre (and %post if needed)
ESXIP=`awk -F "ESXIP=" '{print $2}' /proc/cmdline | cut -d " " -f 1`
ESXVMOTION=`awk -F "ESXVMOTION=" '{print $2}' /proc/cmdline | cut -d " "
-f 1`
Yea, Yea, Yea, there are more elegant ways to do this, but this should
work for you
Ok, thanks.
But only in %pre and %post ????
So this will NOT work?
%pre
ESXIP=`awk -F "ESXIP=" '{print $2}' /proc/cmdline | cut -d " " -f 1`
ESXVMOTION=`awk -F "ESXVMOTION=" '{print $2}' /proc/cmdline | cut -d " " -f 1`
# Network Configurations
network --device eth0 --bootproto static --ip $ESXIP --netmask 255.255.255.0
Or in other words.... is the network-line part of the %pre section????
Gabrie
[Date Prev][Date Next] [Thread Prev][Thread Next]
[Thread Index]
[Date Index]
[Author Index]