Thanks Sebastian. I am working on the next version of package and I will
pull the fix in for this bug.

--
Khalid

On 10/21/21 3:26 PM, Sebastian Dalfuß wrote:
> Package: kexec-tools
> Version: 1:2.0.22-2+b1
> 
> Output when upgrading kexec-tools (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
> 
> Init is sysvinit.
> 
> The init script indeed does not support a restart action, as it is not 
> necessary for kexec.
> 
> Removal of the following autogenerated lines from the postinst script 
> seems to remedy the situation, as the package is then installable and 
> kexec reboots do work:
> 
> # 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
> 

Reply via email to