How to call FAI_ACTION install from a hook?

Andre Roslindo Vasko andrevasko at celepar.pr.gov.br
Thu Feb 21 18:18:14 CET 2008


Hi there,

Sorry to bother you, but I need your help.

I installed FAI on my server and I REALLY NEED to put a menu BEFORE the
installation starts. So I created a hook called "menu" and changed the
FAI_ACTION to "menu". After the user choose some option on the menu, I 
want to
change the FAI_ACTION to "install" but I got errors when I run "fai -N 
install".

Is there a way to call the script /usr/sbin/fai with the FAI_ACTION set to
install from a hook that I created?

I don't want to destroy the work that Thomas did creating FAI, so I'm 
asking if
there is a "correct" way to call install from a hook. But I could simple 
edit
the code of function "install" and put the code from my hook there, what 
I think
that is a "wrong" and "dirty" way to do that.

Thanks in advance,

ANDRÉ VASKO

(p.s.: I'm trying to resend this message without the HTML-stuff, if it 
doesn't work, please let me know!)


More information about the linux-fai mailing list