Jerry Geis wrote:>
> I have been looking for environment variables for the %post
> section of
> kickstart.
>
> Namely if I start my kickstart command with "linux
ks=http://serverip/ks.cfg"
> is there an environment variable that has serverip that I can use in the
> %post section?
>
> Also is there a way to pass a command line argument to the %post section
> when running kickstart command as the above http://serverip/ks.cfg
There are no pre-assigned environment variables in kickstart, but
you can query kernel parameters from 'cat /proc/cmdline' and you
can setup your own environment variables early in the %post section
that you can use later.
You can probably use different userland utilities to acquire
different information and populate your own environment variables
with it. Just make sure the utilities are installed in the
%packages section. DHCP information would be handy in variables. I
set the architecture variable early with:
export ARCH="`uname -i`"
-Ross
______________________________________________________________________
This e-mail, and any attachments thereto, is intended only for use by
the addressee(s) named herein and may contain legally privileged
and/or confidential information. If you are not the intended recipient
of this e-mail, you are hereby notified that any dissemination,
distribution or copying of this e-mail, and any attachments thereto,
is strictly prohibited. If you have received this e-mail in error,
please immediately notify the sender and permanently delete the
original and any copy or printout thereof.
-------------- next part --------------
A non-text attachment was scrubbed...
Name: smime.p7s
Type: application/x-pkcs7-signature
Size: 3971 bytes
Desc: not available
URL:
<http://lists.centos.org/pipermail/centos/attachments/20080305/c9becaa5/attachment-0002.bin>