Thanks for the tips!
At some point I decided to put an infinite sleep(1) loop in the %POST to earn some time in order to dive into the chroot environment under Alt-F2 and experiment a bit. No matter what I did I couldn't make the expect script to work. My knowledge of expect is limited at best. The original expct script was produced by autoexpect and it had this line: spawn $env(SHELL) which failed in chrooted env. I realized that the variable $SHELL is empty so I replaced the line by: spawn /bin/bash but this didn't work either complaining that there are not enough pseudo terminals exist. I had more success with the second approach (thanks Iain!) using inst_sge utility. But again there were several caveats. First it took me a considerable amount of time to realize that the $HOSTNAME in chrooted env is not set. inst_sge wouldn't complete properly when this var is empty. In addition kernel's kernel.hostname had to be set too via 'sysctl -w' too. Even though the problem is solved I'm still puzzled with how to make expect scripts work in kickstart. On Fri, Sep 5, 2008 at 12:13 PM, Iain Morrison <[EMAIL PROTECTED]> wrote: > Hi, > >> -----Original Message----- >> From: [EMAIL PROTECTED] >> [mailto:[EMAIL PROTECTED] On Behalf Of Michael Green >> Sent: 05 September 2008 09:27 >> To: Red Hat Enterprise Linux 5 (Tikanga) discussion mailing-list >> Subject: Re: [rhelv5-list] expect scripts in %POST of Kickstart >> >> I need to drive an interactive installation of execution daemon of >> N1GE (Sun Grid Engine) as part of Kickstart installation. I have 20 >> new machines here waiting to be installed (followed by another 20), to >> become execution nodes of an HPC cluster. The master/head node is >> already installed and has N1GE master scheduler up and running, >> waiting for execution nodes to join. > > Can you not run the agent installation from the command line - this is > what we do > > inst_sge -x -noremote -auto /n1/ge/6.1_U4/cXX-auto.conf > > [We install the client using cfengine but it should weork in kickstart > as well.] > > iain -- Warm regards, Michael Green _______________________________________________ rhelv5-list mailing list [email protected] https://www.redhat.com/mailman/listinfo/rhelv5-list
