Dear maintainer,
I'm experiencing a problem with running task_error from hooks/debconf.DEFAULT. The error gets logged, savelog is called, but then the softupdate / install continues like nothing happened. This is due to task_error killing the current process after it, which is just the hook script, since this is executed in anothe process. The check_status function called directly after calling the hook does check the exit code, but doesn't compare it to $STOP_ON_ERROR, so the install just continues.
Reproducer:
mkdir class
mkdir debconf
mkdir hooks
cat <<EOF hooks/debconf.DEFAULT
#!/bin/bash
task_error 777 1 1
EOF
chmod +x hooks/debconf.DEFAULT
fai softupdate -s "file://$(pwd)"
Best,
Cornelius Hoffmann