Thanks for the suggestions.
After working on the suggestions below, I ultimately created different
profiles and used ksmeta variables to change the kickstart file.
-Anu
From:
cobbler-bounces@lists.fedorahosted.org
[mailto:cobbler-bounces@lists.fedorahosted.org] On Behalf Of mark
Sent: Monday, March 01, 2010 10:12 AM
To: cobbler mailing list
Subject: Re: Running bash script during cobbler install
On Mon, Mar 1, 2010 at 10:53 AM, Anu Ramachandra <anu@molecularimprints.com>
wrote:
Hello,
We use cobbler to install fedora onto new
systems. At the end of the install, I source a bash script.
I just added a menu to this bash script. I
use ‘read’ to read in the user’s choice. However, when cobbler gets to this
point it hangs. The menu does not come up. The screen shows the message
‘Running post install scripts’ and stays this way.
Isn't the script being run in the background? This would mean that
standard in is not the keyboard, which is why it's hanging. You can try
redirecting standard in from /dev/console (which I've not done, so don't really
know what to tell you to expect from that), or redirect from a file you can
create in the post via a snippet just prior to executing the bash script with
the menu selection, or use "echo" to pipe the menu selection in.
mark