%pre
cat /proc/cmdline > /tmp/cmdline
%post --nochroot
cp /tmp/cmdline /mnt/sysimage/tmp/cmdline
%post
# Process using /tmp/cmdline from inside chroot environment
Repeat for other variables you want to carry forward.
Hardik.
On Thu, Mar 25, 2010 at 9:45 AM, Chris Lumens <clumens@xxxxxxxxxx> wrote:
> rdLine = (open("/proc/cmdline", "r").read())kickstart doesn't have any variables so you'll either have to write
> offNUS = (rdLine.find('nus') == -1) and (rdLine.find('nlis') == -1)
> == -1
> != -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.
these values out to another file in your %post, or duplicate the above
code in your %post.
- Chris
_______________________________________________
Kickstart-list mailing list
Kickstart-list@xxxxxxxxxx
https://www.redhat.com/mailman/listinfo/kickstart-list
_______________________________________________ Kickstart-list mailing list Kickstart-list@xxxxxxxxxx https://www.redhat.com/mailman/listinfo/kickstart-list