Kickstart-list Digest, Vol 80, Issue 4

Lance Gropper streamscalelance at gmail.com
Wed Oct 6 16:28:33 UTC 2010


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
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://listman.redhat.com/archives/kickstart-list/attachments/20101006/ca2e3bd7/attachment.htm>


More information about the Kickstart-list mailing list