The officially official Devuan Forum!

You are not logged in.

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

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

[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: 7  

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

#3 2022-09-14 15:59:16

mirrortokyo
Member
Registered: 2021-04-08
Posts: 54  

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

I'm still stuck with kexec-tools 1:2.0.20-2.1 - Debian upstream doesn't appear to have addressed this problem.

Offline

Board footer