Brian,
I'm not sure what is wrong with your script, but you can get access to a
shell window during any of the three script environments (pre, chroot, post)
by putting the following line at the top of your script:
exec /bin/bash -x
This pauses the autoinstall dead in its tracks until you kill the shell...
Even though I have not figured out yet how to interact with *that* shell
when it starts, what you *can* do is hit ctl-alt-F2 to get to a shell that's
already running on ttyN. From there, you can run each of your commands
manually and find out what's wrong.
Hope that helps.
-- Charlie
-----Original Message-----
From: Brian Corriveau [mailto:bcorriveau@cray.com]
Sent: Monday, December 20, 2004 5:25 PM
To: suse-autoinstall(a)suse.com
Subject: [suse-autoinstall] SCR problem
How do I run this from the bash shell?
(from clients/inst_finish.ycp)
SCR::Write (.target.string, "/var/lib/YaST2/runme_at_boot", "")
I want to try running this manually so I can understand why it is failing
during autoinstallation. This is failing for my target, as are a couple
other
SCR commands. I can run the command from a chroot post-script to get the
help
output with:
chroot /mnt /usr/lib/YaST2/servers/scr -h
So the command seems to run somewhat, but for the runme_at_boot creation I
get
the Y2log error:
2004-12-18 02:34:13 <0> linux(3172) [liby2]
Y2ProgramComponent.cc(launchExternall
Program):292 Going to execute /usr/lib/YaST2/servers/scr with chroot /mnt
2004-12-18 02:34:13 <0> linux(519) [libycp] Scanner.cc(Scanner):107 Scanner
settting builtinTable to 0x507d10
2004-12-18 02:34:13 <0> linux(519) [libycp] Scanner.cc(initTables):146
m_globalTT
able 0x1776bb0
2004-12-18 02:34:13 <0> linux(519) [libycp] Scanner.cc(initTables):158
m_localTaable 0x52fd60
2004-12-18 02:34:13 <0> linux(519) [libycp] parser.yy(yyparse):284
------------------------------------------- accept
------------------------------
--------------
2004-12-18 02:34:13 <0> linux(519) [liby2]
Y2ProgramComponent.cc(sendToExternal))
:377 Error writing to external program /usr/lib/YaST2/servers/scr: Couldn't
sendd
(`Write (.target.string, "/var/lib/YaST2/runme_at_boot", "")) (Broken pipe)
2004-12-18 02:34:13 <3> linux(519) [liby2]
Y2ProgramComponent.cc(receiveFromExtee
rnal):343 External program /usr/lib/YaST2/servers/scr died unexpectedly
2004-12-18 02:34:13 <3> linux(519) [Interpreter] scr:240 SCR::Write() did
not
reeturn a boolean
So I'd like to understand what is wrong with my target's environment that
this
would fail.
thanks,
Brian
--
To unsubscribe, e-mail: suse-autoinstall-unsubscribe(a)suse.com
For additional commands, e-mail: suse-autoinstall-help(a)suse.com