The officially official Devuan Forum!

You are not logged in.

#1 2021-09-24 19:31:18

hagbard_
Member
Registered: 2020-10-05
Posts: 6  

[SOLVED] Updating kexec-tools from chimaera to daedalus

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

#2 2021-10-21 20:51:17

hagbard_
Member
Registered: 2020-10-05
Posts: 6  

Re: [SOLVED] Updating kexec-tools from chimaera to daedalus

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

Board footer