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.
Has anyone used it before? Any ideas on what is missing would help.
Thanks!
Anu Ramachandra
Molecular Imprints Inc,
Austin, TX
512-329-7760
On Mon, Mar 01, 2010 at 09:53:59AM -0600, Anu Ramachandra wrote:
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.
Has anyone used it before? Any ideas on what is missing would help.
Havent done it bevore, chvt could be of use here.
Christian
On Mon, Mar 1, 2010 at 10:53 AM, Anu Ramachandra anu@molecularimprints.comwrote:
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
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
On Tue, Mar 2, 2010 at 11:34 AM, Anu Ramachandra anu@molecularimprints.comwrote:
Thanks for the suggestions.
After working on the suggestions below, I ultimately created different profiles and used ksmeta variables to change the kickstart file.
An excellent example of using the system to fix the system. Well played!
mark
cobbler@lists.fedorahosted.org