use install paramter in postinstall script
Chris Lumens
clumens at redhat.com
Thu Mar 25 13:45:37 UTC 2010
> rdLine = (open("/proc/cmdline", "r").read())
> offNUS = (rdLine.find('nus') == -1) and (rdLine.find('nlis') == -1)
> onRaid = rdLine.find('hwraid') == -1
> onInst = rdLine.find('install') != -1
> .
> .
> ###
>
> Please can you tell me how I can use this variables in the %post
> section, maybe I have missed some documentation in the internet.
kickstart doesn't have any variables so you'll either have to write
these values out to another file in your %post, or duplicate the above
code in your %post.
- Chris
More information about the Kickstart-list
mailing list