Package: fai-client
Version: 6.4.3
Severity: important
Tags: upstream

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


-- System Information:
Debian Release: 13.2
  APT prefers stable-updates
  APT policy: (500, 'stable-updates'), (500, 'stable-security'), (500, 'stable')
Architecture: amd64 (x86_64)

Kernel: Linux 6.12.57+deb13-amd64 (SMP w/24 CPU threads; PREEMPT)
Locale: LANG=en_US.UTF-8, LC_CTYPE=en_US.UTF-8 (charmap=UTF-8), LANGUAGE not set
Shell: /bin/sh linked to /usr/bin/dash
Init: systemd (via /run/systemd/system)

Versions of packages fai-client depends on:
ii  debconf-utils        1.5.91
ii  file                 1:5.46-5
ii  iproute2             6.15.0-1
ii  libfile-lchown-perl  0.02-4
ii  perl                 5.40.1-6
ii  procps               2:4.0.4-9
ii  zstd                 1.5.7+dfsg-1

Versions of packages fai-client recommends:
ii  fdisk       2.41-5
ii  util-linux  2.41-5

Versions of packages fai-client suggests:
ii  libgraph-perl  1:0.9735-1
pn  logtail        <none>

-- Configuration Files:
/etc/fai/fai.conf [Errno 13] Permission denied: '/etc/fai/fai.conf'

-- no debconf information

Reply via email to