Kickstart-list Digest, Vol 80, Issue 5

Lance Gropper streamscalelance at gmail.com
Thu Oct 7 18:59:21 UTC 2010


Hello Matt:

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.

Lance

On Thu, Oct 7, 2010 at 9:00 AM, <kickstart-list-request at redhat.com> wrote:

> Send Kickstart-list mailing list submissions to
>        kickstart-list at redhat.com
>
> To subscribe or unsubscribe via the World Wide Web, visit
>        https://www.redhat.com/mailman/listinfo/kickstart-list
> or, via email, send a message with subject or body 'help' to
>        kickstart-list-request at redhat.com
>
> You can reach the person managing the list at
>        kickstart-list-owner at redhat.com
>
> When replying, please edit your Subject line so it is more specific
> than "Re: Contents of Kickstart-list digest..."
>
> Today's Topics:
>
>   1. Re: Kickstart-list Digest, Vol 80, Issue 4 (Lance Gropper)
>   2. Re: Kickstart-list Digest, Vol 80, Issue 4 (Matthew Sellers)
>   3. RHEL6 kickstart installation from USB key (Philip Juels)
>
>
> ---------- Forwarded message ----------
> From: Lance Gropper <streamscalelance at gmail.com>
> To: kickstart-list at redhat.com
> Date: Wed, 6 Oct 2010 09:28:33 -0700
> Subject: Re: Kickstart-list Digest, Vol 80, Issue 4
> Hello Joe:
>
> 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).
>
> Lance
>
> On Wed, Oct 6, 2010 at 9:00 AM, <kickstart-list-request at redhat.com> wrote:
>
>> Send Kickstart-list mailing list submissions to
>>        kickstart-list at redhat.com
>>
>> To subscribe or unsubscribe via the World Wide Web, visit
>>        https://www.redhat.com/mailman/listinfo/kickstart-list
>> or, via email, send a message with subject or body 'help' to
>>        kickstart-list-request at redhat.com
>>
>> You can reach the person managing the list at
>>        kickstart-list-owner at redhat.com
>>
>> When replying, please edit your Subject line so it is more specific
>> than "Re: Contents of Kickstart-list digest..."
>>
>> Today's Topics:
>>
>>   1. Can anaconda rerun itself? (Lance Gropper)
>>   2. Re: Can anaconda rerun itself? (Joe Wulf)
>>   3. Re: Can anaconda rerun itself? (Chris Lumens)
>>
>>
>> ---------- Forwarded message ----------
>> From: Lance Gropper <streamscalelance at gmail.com>
>> To: kickstart-list at redhat.com
>> Date: Tue, 5 Oct 2010 13:44:53 -0700
>> Subject: Can anaconda rerun itself?
>> Hello Ya'all:
>>
>> Is it possible to put something in the %pre such that Anaconda re-runs
>> itself without rebooting the system or running grub?
>>
>> Lance
>>
>>
>>
>> ---------- Forwarded message ----------
>> From: Joe Wulf <joe_wulf at yahoo.com>
>> To: Discussion list about Kickstart <kickstart-list at redhat.com>
>> Date: Tue, 5 Oct 2010 14:29:31 -0700 (PDT)
>> Subject: Re: Can anaconda rerun itself?
>> Hello Lance---what is the use case?  What will you leverage this for?
>>
>> R,
>> -Joe Wulf
>>
>>
>> *From:* Lance Gropper <streamscalelance at gmail.com>
>> *To:* kickstart-list at redhat.com
>> *Sent:* Tue, October 5, 2010 4:44:53 PM
>> *Subject:* Can anaconda rerun itself?
>>
>> Hello Ya'all:
>>
>> Is it possible to put something in the %pre such that Anaconda re-runs
>> itself without rebooting the system or running grub?
>>
>> Lance
>>
>>
>>
>> ---------- Forwarded message ----------
>> From: Chris Lumens <clumens at redhat.com>
>> To: kickstart-list at redhat.com
>> Date: Wed, 6 Oct 2010 09:07:51 -0400
>> Subject: Re: Can anaconda rerun itself?
>> > Is it possible to put something in the %pre such that Anaconda re-runs
>> > itself without rebooting the system or running grub?
>>
>> anaconda does not do a good job cleaning up after itself since it knows
>> it runs with /tmp on a ramdisk and nothing will persist anyway.
>> Therefore while it's likely you can do this, there's going to be a bunch
>> of stuff in /tmp and mounted on the system that you will have to clean
>> up yourself.
>>
>> I think this is a bad idea, though.
>>
>> - Chris
>>
>>
>>
>> _______________________________________________
>> Kickstart-list mailing list
>> Kickstart-list at redhat.com
>> https://www.redhat.com/mailman/listinfo/kickstart-list
>>
>
>
>
> ---------- Forwarded message ----------
> From: Matthew Sellers <matt at indigo.nu>
> To: Discussion list about Kickstart <kickstart-list at redhat.com>
> Date: Wed, 6 Oct 2010 22:38:14 -0500
> Subject: Re: Kickstart-list Digest, Vol 80, Issue 4
> Hi Lance,
>
> I think the easiest route to your solution is to use %ksappend or
> %include.  You can create a script that runs in %pre to generate the
> customized portions of the kickstart, then %include that customization
> via the include statement.  A step up from this concept is using a
> tool like cobbler... check out its website if you have never heard of
> it before.
>
> Basic Concept
> --
>
> %pre
>
> # script to detect hardware and spit out custom kickstart lines:
> bash /root/ks_setup_drives.sh > /tmp/ks_drive_config.ks
>
> .... then inside kickstart:
>
> # include generated script:
> %include /tmp/ks_drive_config.ks
>
> I hope I am right that this behavior is consistent across older
> releases of Anaconda?
>
> --
> Matt
>
>
>
>
>
>
>
>
>
>
>
> On Wed, Oct 6, 2010 at 11:28 AM, Lance Gropper
> <streamscalelance at gmail.com> wrote:
> > Hello Joe:
> > 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).
> > Lance
> > On Wed, Oct 6, 2010 at 9:00 AM, <kickstart-list-request at redhat.com>
> wrote:
> >>
> >> Send Kickstart-list mailing list submissions to
> >>        kickstart-list at redhat.com
> >>
> >> To subscribe or unsubscribe via the World Wide Web, visit
> >>        https://www.redhat.com/mailman/listinfo/kickstart-list
> >> or, via email, send a message with subject or body 'help' to
> >>        kickstart-list-request at redhat.com
> >>
> >> You can reach the person managing the list at
> >>        kickstart-list-owner at redhat.com
> >>
> >> When replying, please edit your Subject line so it is more specific
> >> than "Re: Contents of Kickstart-list digest..."
> >>
> >> Today's Topics:
> >>
> >>   1. Can anaconda rerun itself? (Lance Gropper)
> >>   2. Re: Can anaconda rerun itself? (Joe Wulf)
> >>   3. Re: Can anaconda rerun itself? (Chris Lumens)
> >>
> >>
> >> ---------- Forwarded message ----------
> >> From: Lance Gropper <streamscalelance at gmail.com>
> >> To: kickstart-list at redhat.com
> >> Date: Tue, 5 Oct 2010 13:44:53 -0700
> >> Subject: Can anaconda rerun itself?
> >> Hello Ya'all:
> >> Is it possible to put something in the %pre such that Anaconda re-runs
> >> itself without rebooting the system or running grub?
> >> Lance
> >>
> >>
> >> ---------- Forwarded message ----------
> >> From: Joe Wulf <joe_wulf at yahoo.com>
> >> To: Discussion list about Kickstart <kickstart-list at redhat.com>
> >> Date: Tue, 5 Oct 2010 14:29:31 -0700 (PDT)
> >> Subject: Re: Can anaconda rerun itself?
> >> Hello Lance---what is the use case?  What will you leverage this for?
> >>
> >> R,
> >> -Joe Wulf
> >>
> >> From: Lance Gropper <streamscalelance at gmail.com>
> >> To: kickstart-list at redhat.com
> >> Sent: Tue, October 5, 2010 4:44:53 PM
> >> Subject: Can anaconda rerun itself?
> >>
> >> Hello Ya'all:
> >> Is it possible to put something in the %pre such that Anaconda re-runs
> >> itself without rebooting the system or running grub?
> >> Lance
> >>
> >>
> >> ---------- Forwarded message ----------
> >> From: Chris Lumens <clumens at redhat.com>
> >> To: kickstart-list at redhat.com
> >> Date: Wed, 6 Oct 2010 09:07:51 -0400
> >> Subject: Re: Can anaconda rerun itself?
> >> > Is it possible to put something in the %pre such that Anaconda re-runs
> >> > itself without rebooting the system or running grub?
> >>
> >> anaconda does not do a good job cleaning up after itself since it knows
> >> it runs with /tmp on a ramdisk and nothing will persist anyway.
> >> Therefore while it's likely you can do this, there's going to be a bunch
> >> of stuff in /tmp and mounted on the system that you will have to clean
> >> up yourself.
> >>
> >> I think this is a bad idea, though.
> >>
> >> - Chris
> >>
> >>
> >>
> >> _______________________________________________
> >> Kickstart-list mailing list
> >> Kickstart-list at redhat.com
> >> https://www.redhat.com/mailman/listinfo/kickstart-list
> >
> >
> > _______________________________________________
> > Kickstart-list mailing list
> > Kickstart-list at redhat.com
> > https://www.redhat.com/mailman/listinfo/kickstart-list
> >
>
>
>
>
> ---------- Forwarded message ----------
> From: Philip Juels <juels at photodiagnostic.com>
> To: Kickstart-list <Kickstart-list at redhat.com>
> Date: Thu, 7 Oct 2010 11:00:25 -0400
> Subject: RHEL6 kickstart installation from USB key
> Hi all,
>
> 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:
>
> 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.
> 2)  Use syslinux and lilo for bootloader.
>
> 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?).
>
> Anyway, as anyone else successfully created a USB-based RHEL6 kickstart
> installer?
>
> THX,
>
> --PJ
>
>
>
> _______________________________________________
> Kickstart-list mailing list
> Kickstart-list at redhat.com
> https://www.redhat.com/mailman/listinfo/kickstart-list
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://listman.redhat.com/archives/kickstart-list/attachments/20101007/e9739bcb/attachment.htm>


More information about the Kickstart-list mailing list