You are not logged in.
That's what I get when updating kexec-tools (output after dpkg --configure kexec-tools):
Setting up kexec-tools (1:2.0.22-2+b1) ...
Error: argument 'restart' not supported
invoke-rc.d: initscript kexec, action "restart" failed.
dpkg: error processing package kexec-tools (--configure):
installed kexec-tools package post-installation script subprocess returned error exit status 1
Errors were encountered while processing:
kexec-tools
I this devuan specific, since it relates to init? Or should a bug be posted to debian (didn't find any relating to this so far)? Or is a devuan fork necessary?
"restart" seems to be weird for something that isn't a daemon.
Offline
The postinst script indeed tries to invoke the restart action, which does not exist for kexec.
Removing the following section from the postinst script seems to fix the problem.
# Automatically added by dh_installinit/13.4.1
if [ "$1" = "configure" ] || [ "$1" = "abort-upgrade" ] || [ "$1" = "abort-deconfigure" ] || [ "$1" = "abort-remove" ] ; then
if [ -z "${DPKG_ROOT:-}" ] && [ -x "/etc/init.d/kexec" ]; then
update-rc.d kexec defaults >/dev/null
invoke-rc.d kexec restart || exit 1
fi
fi
# End automatically added section
# Automatically added by dh_installinit/13.4.1
if [ "$1" = "configure" ] || [ "$1" = "abort-upgrade" ] || [ "$1" = "abort-deconfigure" ] || [ "$1" = "abort-remove" ] ; then
if [ -z "${DPKG_ROOT:-}" ] && [ -x "/etc/init.d/kexec-load" ]; then
update-rc.d kexec-load defaults >/dev/null
invoke-rc.d kexec-load restart || exit 1
fi
fi
# End automatically added section
Offline
I'm still stuck with kexec-tools 1:2.0.20-2.1 - Debian upstream doesn't appear to have addressed this problem.
Offline