[Date Prev][Date Next] [Thread Prev][Thread Next]
[Thread Index]
[Date Index]
[Author Index]
Re: Using variables in kickstart file
- From: Ed Brown <ebrown lanl gov>
- To: Discussion list about Kickstart <kickstart-list redhat com>
- Subject: Re: Using variables in kickstart file
- Date: Thu, 19 Jul 2007 08:07:18 -0600
Use python instead.
Or perl. You can substitute any parameter name you want from
/proc/cmdline, in place of the string 'ip' in the example given earlier:
ip=`cat /proc/cmdline |perl -e 'if (<> =~ /\sip=(.*?)\s/) {print $1}'`
ESXIP=`cat /proc/cmdline |perl -e 'if (<> =~ /\sESXIP=(.*?)\s/) {print
$1}'`
-Ed
[Date Prev][Date Next] [Thread Prev][Thread Next]
[Thread Index]
[Date Index]
[Author Index]