Hello Matt:<div><br></div><div>The include doesn't work for the installation source - only the destination. I have already modified other portions to use include, but if you try to modify it to use a different install from directory, it's ignored.</div>

<div><br></div><div>Lance<br><div><br><div class="gmail_quote">On Thu, Oct 7, 2010 at 9:00 AM,  <span dir="ltr"><<a href="mailto:kickstart-list-request@redhat.com">kickstart-list-request@redhat.com</a>></span> wrote:<br>

<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex;">Send Kickstart-list mailing list submissions to<br>
        <a href="mailto:kickstart-list@redhat.com">kickstart-list@redhat.com</a><br>
<br>
To subscribe or unsubscribe via the World Wide Web, visit<br>
        <a href="https://www.redhat.com/mailman/listinfo/kickstart-list" target="_blank">https://www.redhat.com/mailman/listinfo/kickstart-list</a><br>
or, via email, send a message with subject or body 'help' to<br>
        <a href="mailto:kickstart-list-request@redhat.com">kickstart-list-request@redhat.com</a><br>
<br>
You can reach the person managing the list at<br>
        <a href="mailto:kickstart-list-owner@redhat.com">kickstart-list-owner@redhat.com</a><br>
<br>
When replying, please edit your Subject line so it is more specific<br>
than "Re: Contents of Kickstart-list digest..."<br>
<br>Today's Topics:<br>
<br>
   1. Re: Kickstart-list Digest, Vol 80, Issue 4 (Lance Gropper)<br>
   2. Re: Kickstart-list Digest, Vol 80, Issue 4 (Matthew Sellers)<br>
   3. RHEL6 kickstart installation from USB key (Philip Juels)<br>
<br><br>---------- Forwarded message ----------<br>From: Lance Gropper <<a href="mailto:streamscalelance@gmail.com">streamscalelance@gmail.com</a>><br>To: <a href="mailto:kickstart-list@redhat.com">kickstart-list@redhat.com</a><br>

Date: Wed, 6 Oct 2010 09:28:33 -0700<br>Subject: Re: Kickstart-list Digest, Vol 80, Issue 4<br>Hello Joe:<div><br></div><div>This is a followup to a previous posting - I need to alter constants in the kickstart file, which can't be altered in the %pre or %post sections. In particular, I'm creating an automated install, however the source installation device varies from machine to machine (on some machines, it's sda, on some it is sdb, and on some it is the last available sd device). The thinking here is that I can put statements in the %pre section which will modify the kickstart file only if the system is different from how the kickstart is currently set, then I want to rerun Anaconda at that point. When the Anaconda restarts (or starts), if it sees that the file matches the system, it continues with the kickstart process without modifying the file and without restarting Anaconda. I have no problem with the logic or modifying the file - I just need a way to restart anaconda without rebooting the machine or rerunning GRUB. Maybe even run a second instance of Anaconda from within Anaconda (but then clean exiting will become an issue).</div>



<div><br></div><div>Lance</div><div><br><div class="gmail_quote">On Wed, Oct 6, 2010 at 9:00 AM,  <span dir="ltr"><<a href="mailto:kickstart-list-request@redhat.com" target="_blank">kickstart-list-request@redhat.com</a>></span> wrote:<br>



<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">Send Kickstart-list mailing list submissions to<br>
        <a href="mailto:kickstart-list@redhat.com" target="_blank">kickstart-list@redhat.com</a><br>
<br>
To subscribe or unsubscribe via the World Wide Web, visit<br>
        <a href="https://www.redhat.com/mailman/listinfo/kickstart-list" target="_blank">https://www.redhat.com/mailman/listinfo/kickstart-list</a><br>
or, via email, send a message with subject or body 'help' to<br>
        <a href="mailto:kickstart-list-request@redhat.com" target="_blank">kickstart-list-request@redhat.com</a><br>
<br>
You can reach the person managing the list at<br>
        <a href="mailto:kickstart-list-owner@redhat.com" target="_blank">kickstart-list-owner@redhat.com</a><br>
<br>
When replying, please edit your Subject line so it is more specific<br>
than "Re: Contents of Kickstart-list digest..."<br>
<br>Today's Topics:<br>
<br>
   1. Can anaconda rerun itself? (Lance Gropper)<br>
   2. Re: Can anaconda rerun itself? (Joe Wulf)<br>
   3. Re: Can anaconda rerun itself? (Chris Lumens)<br>
<br><br>---------- Forwarded message ----------<br>From: Lance Gropper <<a href="mailto:streamscalelance@gmail.com" target="_blank">streamscalelance@gmail.com</a>><br>To: <a href="mailto:kickstart-list@redhat.com" target="_blank">kickstart-list@redhat.com</a><br>



Date: Tue, 5 Oct 2010 13:44:53 -0700<br>Subject: Can anaconda rerun itself?<br>Hello Ya'all:<div><br></div><div>Is it possible to put something in the %pre such that Anaconda re-runs itself without rebooting the system or running grub?</div>



<div><br></div><div>Lance</div><div><br></div>
<br><br>---------- Forwarded message ----------<br>From: Joe Wulf <<a href="mailto:joe_wulf@yahoo.com" target="_blank">joe_wulf@yahoo.com</a>><br>To: Discussion list about Kickstart <<a href="mailto:kickstart-list@redhat.com" target="_blank">kickstart-list@redhat.com</a>><br>



Date: Tue, 5 Oct 2010 14:29:31 -0700 (PDT)<br>Subject: Re: Can anaconda rerun itself?<br><div><div style="font-family:times new roman, new york, times, serif;font-size:12pt"><div>Hello Lance---what is the use case?  What will you leverage this for?</div>




<div> </div>
<div>R,</div>
<div>-Joe Wulf</div>
<blockquote style="padding-left:5px;margin-left:5px;border-left:rgb(16,16,255) 2px solid">
<div style="font-size:12pt;font-family:times new roman, new york, times, serif"><br>
<div style="font-size:12pt;font-family:times new roman, new york, times, serif"><font face="Tahoma" size="2"><b><span style="font-weight:bold">From:</span></b> Lance Gropper <<a href="mailto:streamscalelance@gmail.com" target="_blank">streamscalelance@gmail.com</a>><br>



<b><span style="font-weight:bold">To:</span></b> <a href="mailto:kickstart-list@redhat.com" target="_blank">kickstart-list@redhat.com</a><br><b><span style="font-weight:bold">Sent:</span></b> Tue, October 5, 2010 4:44:53 PM<br>



<b><span style="font-weight:bold">Subject:</span></b> Can anaconda rerun itself?<br></font><br>Hello Ya'all: 
<div><br></div>
<div>Is it possible to put something in the %pre such that Anaconda re-runs itself without rebooting the system or running grub?</div>
<div><br></div>
<div>Lance</div>
<div><br></div></div></div></blockquote></div></div><br><br>---------- Forwarded message ----------<br>From: Chris Lumens <<a href="mailto:clumens@redhat.com" target="_blank">clumens@redhat.com</a>><br>To: <a href="mailto:kickstart-list@redhat.com" target="_blank">kickstart-list@redhat.com</a><br>



Date: Wed, 6 Oct 2010 09:07:51 -0400<br>Subject: Re: Can anaconda rerun itself?<br>> Is it possible to put something in the %pre such that Anaconda re-runs<br>
> itself without rebooting the system or running grub?<br>
<br>
anaconda does not do a good job cleaning up after itself since it knows<br>
it runs with /tmp on a ramdisk and nothing will persist anyway.<br>
Therefore while it's likely you can do this, there's going to be a bunch<br>
of stuff in /tmp and mounted on the system that you will have to clean<br>
up yourself.<br>
<br>
I think this is a bad idea, though.<br>
<br>
- Chris<br>
<br>
<br>
<br>_______________________________________________<br>
Kickstart-list mailing list<br>
<a href="mailto:Kickstart-list@redhat.com" target="_blank">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></blockquote></div><br></div>
<br><br>---------- Forwarded message ----------<br>From: Matthew Sellers <<a href="mailto:matt@indigo.nu">matt@indigo.nu</a>><br>To: Discussion list about Kickstart <<a href="mailto:kickstart-list@redhat.com">kickstart-list@redhat.com</a>><br>

Date: Wed, 6 Oct 2010 22:38:14 -0500<br>Subject: Re: Kickstart-list Digest, Vol 80, Issue 4<br>Hi Lance,<br>
<br>
I think the easiest route to your solution is to use %ksappend or<br>
%include.  You can create a script that runs in %pre to generate the<br>
customized portions of the kickstart, then %include that customization<br>
via the include statement.  A step up from this concept is using a<br>
tool like cobbler... check out its website if you have never heard of<br>
it before.<br>
<br>
Basic Concept<br>
--<br>
<br>
%pre<br>
<br>
# script to detect hardware and spit out custom kickstart lines:<br>
bash /root/ks_setup_drives.sh > /tmp/ks_drive_config.ks<br>
<br>
.... then inside kickstart:<br>
<br>
# include generated script:<br>
%include /tmp/ks_drive_config.ks<br>
<br>
I hope I am right that this behavior is consistent across older<br>
releases of Anaconda?<br>
<br>
--<br>
Matt<br>
<br>
<br>
<br>
<br>
<br>
<br>
<br>
<br>
<br>
<br>
<br>
On Wed, Oct 6, 2010 at 11:28 AM, Lance Gropper<br>
<<a href="mailto:streamscalelance@gmail.com">streamscalelance@gmail.com</a>> wrote:<br>
> Hello Joe:<br>
> This is a followup to a previous posting - I need to alter constants in the<br>
> kickstart file, which can't be altered in the %pre or %post sections. In<br>
> particular, I'm creating an automated install, however the source<br>
> installation device varies from machine to machine (on some machines, it's<br>
> sda, on some it is sdb, and on some it is the last available sd device). The<br>
> thinking here is that I can put statements in the %pre section which will<br>
> modify the kickstart file only if the system is different from how the<br>
> kickstart is currently set, then I want to rerun Anaconda at that point.<br>
> When the Anaconda restarts (or starts), if it sees that the file matches the<br>
> system, it continues with the kickstart process without modifying the file<br>
> and without restarting Anaconda. I have no problem with the logic or<br>
> modifying the file - I just need a way to restart anaconda without rebooting<br>
> the machine or rerunning GRUB. Maybe even run a second instance of Anaconda<br>
> from within Anaconda (but then clean exiting will become an issue).<br>
> Lance<br>
> On Wed, Oct 6, 2010 at 9:00 AM, <<a href="mailto:kickstart-list-request@redhat.com">kickstart-list-request@redhat.com</a>> wrote:<br>
>><br>
>> Send Kickstart-list mailing list submissions to<br>
>>        <a href="mailto:kickstart-list@redhat.com">kickstart-list@redhat.com</a><br>
>><br>
>> To subscribe or unsubscribe via the World Wide Web, visit<br>
>>        <a href="https://www.redhat.com/mailman/listinfo/kickstart-list" target="_blank">https://www.redhat.com/mailman/listinfo/kickstart-list</a><br>
>> or, via email, send a message with subject or body 'help' to<br>
>>        <a href="mailto:kickstart-list-request@redhat.com">kickstart-list-request@redhat.com</a><br>
>><br>
>> You can reach the person managing the list at<br>
>>        <a href="mailto:kickstart-list-owner@redhat.com">kickstart-list-owner@redhat.com</a><br>
>><br>
>> When replying, please edit your Subject line so it is more specific<br>
>> than "Re: Contents of Kickstart-list digest..."<br>
>><br>
>> Today's Topics:<br>
>><br>
>>   1. Can anaconda rerun itself? (Lance Gropper)<br>
>>   2. Re: Can anaconda rerun itself? (Joe Wulf)<br>
>>   3. Re: Can anaconda rerun itself? (Chris Lumens)<br>
>><br>
>><br>
>> ---------- Forwarded message ----------<br>
>> From: Lance Gropper <<a href="mailto:streamscalelance@gmail.com">streamscalelance@gmail.com</a>><br>
>> To: <a href="mailto:kickstart-list@redhat.com">kickstart-list@redhat.com</a><br>
>> Date: Tue, 5 Oct 2010 13:44:53 -0700<br>
>> Subject: Can anaconda rerun itself?<br>
>> Hello Ya'all:<br>
>> Is it possible to put something in the %pre such that Anaconda re-runs<br>
>> itself without rebooting the system or running grub?<br>
>> Lance<br>
>><br>
>><br>
>> ---------- Forwarded message ----------<br>
>> From: Joe Wulf <<a href="mailto:joe_wulf@yahoo.com">joe_wulf@yahoo.com</a>><br>
>> To: Discussion list about Kickstart <<a href="mailto:kickstart-list@redhat.com">kickstart-list@redhat.com</a>><br>
>> Date: Tue, 5 Oct 2010 14:29:31 -0700 (PDT)<br>
>> Subject: Re: Can anaconda rerun itself?<br>
>> Hello Lance---what is the use case?  What will you leverage this for?<br>
>><br>
>> R,<br>
>> -Joe Wulf<br>
>><br>
>> From: Lance Gropper <<a href="mailto:streamscalelance@gmail.com">streamscalelance@gmail.com</a>><br>
>> To: <a href="mailto:kickstart-list@redhat.com">kickstart-list@redhat.com</a><br>
>> Sent: Tue, October 5, 2010 4:44:53 PM<br>
>> Subject: Can anaconda rerun itself?<br>
>><br>
>> Hello Ya'all:<br>
>> Is it possible to put something in the %pre such that Anaconda re-runs<br>
>> itself without rebooting the system or running grub?<br>
>> Lance<br>
>><br>
>><br>
>> ---------- Forwarded message ----------<br>
>> From: Chris Lumens <<a href="mailto:clumens@redhat.com">clumens@redhat.com</a>><br>
>> To: <a href="mailto:kickstart-list@redhat.com">kickstart-list@redhat.com</a><br>
>> Date: Wed, 6 Oct 2010 09:07:51 -0400<br>
>> Subject: Re: Can anaconda rerun itself?<br>
>> > Is it possible to put something in the %pre such that Anaconda re-runs<br>
>> > itself without rebooting the system or running grub?<br>
>><br>
>> anaconda does not do a good job cleaning up after itself since it knows<br>
>> it runs with /tmp on a ramdisk and nothing will persist anyway.<br>
>> Therefore while it's likely you can do this, there's going to be a bunch<br>
>> of stuff in /tmp and mounted on the system that you will have to clean<br>
>> up yourself.<br>
>><br>
>> I think this is a bad idea, though.<br>
>><br>
>> - Chris<br>
>><br>
>><br>
>><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>
><br>
><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>
><br>
<br>
<br>
<br><br>---------- Forwarded message ----------<br>From: Philip Juels <<a href="mailto:juels@photodiagnostic.com">juels@photodiagnostic.com</a>><br>To: Kickstart-list <<a href="mailto:Kickstart-list@redhat.com">Kickstart-list@redhat.com</a>><br>

Date: Thu, 7 Oct 2010 11:00:25 -0400<br>Subject: RHEL6 kickstart installation from USB key<br>Hi all,<div><br></div><div>I've been kickstart installing RHEL4 and 5 from a 32GB USB key for a couple of years now.  The method I use to create the USB installation environment is roughly:</div>

<div><br></div><div>1)  Re-partition USB key:  one small, 100MB, vfat partition containing the boot loader, kernel, ramdisk image, and kickstart config file; remainder of storage is a ext2 partition containing the package repository and installation customizations.</div>


<div>2)  Use syslinux and lilo for bootloader.</div><div><br></div><div>I tried this method to build a similar RHEL6 USB key installer, but with no success.  Basically, after the kernel loads, I get nothing, just a hung system (something going wrong at the ramdisk loading?).</div>


<div><br></div><div>Anyway, as anyone else successfully created a USB-based RHEL6 kickstart installer?</div><div><br></div><div>THX,</div><div><br></div><div>--PJ </div><div><br></div><div><br></div>
<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></blockquote></div><br></div></div>