I do something like this:<br><br>%pre<br>cat /proc/cmdline > /tmp/cmdline<br><br>%post --nochroot<br>cp /tmp/cmdline /mnt/sysimage/tmp/cmdline<br><br>%post <br># Process using /tmp/cmdline from inside chroot environment<br>

<br>Repeat for other variables you want to carry forward.<br><br>Hardik.<br><br><div class="gmail_quote">On Thu, Mar 25, 2010 at 9:45 AM, Chris Lumens <span dir="ltr"><<a href="mailto:clumens@redhat.com">clumens@redhat.com</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="margin: 0pt 0pt 0pt 0.8ex; border-left: 1px solid rgb(204, 204, 204); padding-left: 1ex;"><div class="im">> rdLine = (open("/proc/cmdline", "r").read())<br>
> offNUS = (rdLine.find('nus') == -1) and (rdLine.find('nlis') == -1)<br>
> onRaid = rdLine.find('hwraid') == -1<br>
> onInst = rdLine.find('install') != -1<br>
> .<br>
> .<br>
> ###<br>
><br>
> Please can you tell me how I can use this variables in the %post<br>
> section, maybe I have missed some documentation in the internet.<br>
<br>
</div>kickstart doesn't have any variables so you'll either have to write<br>
these values out to another file in your %post, or duplicate the above<br>
code in your %post.<br>
<font color="#888888"><br>
- Chris<br>
</font><div><div></div><div class="h5"><br>
_______________________________________________<br>
Kickstart-list mailing list<br>
<a href="mailto:Kickstart-list@redhat.com">Kickstart-list@redhat.com</a><br>
<a href="https://www.redhat.com/mailman/listinfo/kickstart-list" target="_blank">https://www.redhat.com/mailman/listinfo/kickstart-list</a><br>
</div></div></blockquote></div><br>