I've wondered about this too, that is the ability to manually run FAI config scripts 
from a shell. The problem is that none of the environment variables are setup as they 
are when running from within rcS_fai.
Would it be possible to create scripts/hooks/class files which, when their turn to get 
executed came along, they dropped you out to a shell prompt with the complete env 
setup as it is up to that point?

As for the perl scripts, I ended up changing the #!/bin/perl on the first line to 
#!/bin/perl -d so that when the install hits that script, you drop into the perl 
debugger and can inteeractively step through the perl script.
It is missing some perl libs at that stage though, so a lot of the debug fuctionality 
is missing, but it is still usable as a trace tool.

-Bruce.


> -----Original Message-----
> From: Paul Lussier [mailto:[EMAIL PROTECTED]]
> Sent: Thursday, June 13, 2002 5:06 AM
> To: Thomas Lange
> Cc: Paul Lussier; linux-fai
> Subject: Re: Question about the code... 
> 
> 
> In a message dated: Wed, 12 Jun 2002 23:14:31 +0200
> Thomas Lange said:
> 
> >$device_size is a global variable that is set by the shell routine
> >diskandsize. So no $_ is needed in perl (RTF Perl M). If it does not
> >work debug your installation process setting "set -xv" in rcS_fai
> >(much, much output).
> >
> >I think you missunderstood the Perl code, but if this is 
> really a bug,
> >mail again.
> 
> No, I think you are correct, I misread the perl code.  I was also 
> running this single script via the command line using perl -d,
> so of course, none of the correct %ENV vars were set.
> 
> Thanks!
> -- 
> 
> Seeya,
> Paul
> ----
>       It may look like I'm just sitting here doing nothing,
>    but I'm really actively waiting for all my problems to go away.
> 
>        If you're not having fun, you're not doing it right!
> 
> 
> 

Reply via email to