Interacting with script-launched shell
Hi folks, I'm new to this autoinstall email forum, and I am currently learning and using the SuSE installation products. I hope I can participate here as I've seen some good information exchanged in the archives. I am doing some testing with SLES 9.0 on a standard Intel PC. While creating a pre-install script via autoyast's XML control file, I've put in the following lines so I can do some debugging. This was a clever suggestion that I found on Cambridge University's web site (thanks guys!): <source><![CDATA[#!/bin/bash exec /bin/bash -x ]]></source> I believe this should drop me into a bash shell, but if YaST is doing so I can't seem to interact with the shell at all. The console (running YaST in text mode) indicates that I am executing the pre-install script, so I suspect the shell is actually running, but I can't see any output from the shell at all. Ctrl-C seems to let me proceed, so perhaps the shell is taking input from my keyboard, but it is hard to tell. I have found that if I use ctrl-alt-<f2>, <f5>, <f6>, or <f9>, there appear to be shells already running on those alternate ttys which I can use for debugging. That's cool. However, I don't think they're related to the shell I'm starting in my script. Anyone know what I'm doing wrong? TIA. -- Charlie ----- A. Charles Suffin Senior Software Engineer Stratus Technologies, Inc. 111 Powdermill Road Maynard, MA 01754-3409 US (978)461-7590
HI Charles, On Wednesday 22 December 2004 5:01 am, Suffin, Charles wrote:
I believe this should drop me into a bash shell, but if YaST is doing so I can't seem to interact with the shell at all. The console (running YaST in text mode) indicates that I am executing the pre-install script, so I suspect the shell is actually running, but I can't see any output from the shell at all. Ctrl-C seems to let me proceed, so perhaps the shell is taking input from my keyboard, but it is hard to tell.
You can take a look at the scripts executed and their logs in directories under: /var/adm/autoinstall If you drop into a shell during the process I believe you would prefix the above with /mnt. If you do a rescue like boot then you will have to mount the drive and look under that mount point. Brian
participants (2)
-
Brian Corriveau
-
Suffin, Charles