>>>>> On Mon, 06 Oct 2014 18:07:16 +0200, Christian Seiler <christ...@iwakd.de> >>>>> said:
> Currently, if $FAI_ACTION is install, and the installation fails, bash > is run on the computer to be installed. This is not always ideal, > however, since some administrators might want to lock down local > computers as much as possible. > Therefore, it would be nice if it were possible to specify the action > taken on installation failure. Perhaps through configuration, but also > a very simple hook that could exec something else would probably > suffice. Hi Christian, you can do it right now by redefining the subroutine die(). If the FAI installation aborts, this routine is called in the end, which calls bash. This subroutine is normally defined in $NFSROOT/.../lib/subroutines. You can redefine every FAI function by creating a file /srv/fai/config/hooks/subroutines and include bash code in it. This file is sourced after the config space is available and gives you the option to redefine shell functions/subroutines. -- regards Thomas -- To UNSUBSCRIBE, email to debian-bugs-dist-requ...@lists.debian.org with a subject of "unsubscribe". Trouble? Contact listmas...@lists.debian.org