>>>>> On Sat, 07 Oct 2006 16:51:26 +0200, Henning Sprang <[EMAIL PROTECTED]> 
>>>>> said:

    > Hmm, somehow I don't like the idea mixing up hooks and user defined
    > actions. Whare is this actually used?
    > When calling fai on the command line?
yes, but also when doing network boot. So you can always define
FAI_ACTION=myaction and if /srv/fai/config/hooks/myaction existst, it
will be executed.

    > In my understanding, the definition of a hook is something that is run
    > _before_ an action with the same name, depending on a class that matches
    > the <CLASSNAME> part in  <TASKNAME>.<CLASSNAME>.

    > Shouldn't we have then better an own directory actions instead?
Yes maybe, but IMO it's not that bad to use the hooks directory. Hook
extend the FAI function is some way. Defining an own action is also
some sort of extension.
-- 
regards Thomas


-- 
To UNSUBSCRIBE, email to [EMAIL PROTECTED]
with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]

Reply via email to