Devuan bug report logs - #917
/usr/sbin/kexec: The /etc/init.d/kexec script is now missing, breaking kexec functionality.

version graph

Package: kexec-tools; Maintainer for kexec-tools is (unknown); Source for kexec-tools is src:kexec-tools.

Reported by: David Kuehling <dvdkhlng@posteo.de>

Date: Wed, 22 Oct 2025 13:00:01 UTC

Severity: normal

Tags: debian

Found in version 1:2.0.29-2

Forwarded to https://bugs.debian.org/1111802

Reply or subscribe to this bug.

Toggle useless messages

View this report as an mbox folder, status mbox, maintainer mbox


Report forwarded to devuan-bugs@lists.dyne.org, dvdkhlng@posteo.de, devuan-dev@lists.dyne.org:
bug#917; Package kexec-tools. (Wed, 22 Oct 2025 13:00:01 GMT) (full text, mbox, link).


Acknowledgement sent to David Kuehling <dvdkhlng@posteo.de>:
New bug report received and forwarded. Copy sent to dvdkhlng@posteo.de, devuan-dev@lists.dyne.org. (Wed, 22 Oct 2025 13:00:02 GMT) (full text, mbox, link).


Message #5 received at submit@bugs.devuan.org (full text, mbox, reply):

From: David Kuehling <dvdkhlng@posteo.de>
To: Devuan Bug Tracking System <submit@bugs.devuan.org>
Subject: /usr/sbin/kexec: The /etc/init.d/kexec script is now missing, breaking kexec functionality.
Date: Wed, 22 Oct 2025 12:58:42 +0000
Package: kexec-tools
Version: 1:2.0.29-2
Severity: normal
File: /usr/sbin/kexec
X-Debbugs-Cc: dvdkhlng@posteo.de

Hi,

the usual mode of operation of /usr/bin/kexec on Devuan (and Debian)
appears to be: load the new kernel, then trigger a shutdown.  Then at
the end of shutdown, instead of rebooting, kexec actually boots into the
new kernel.

This used to be handled by kexec's init.d hook running something like

  do_stop() {
    ...
    log_action_msg "Will now restart with kexec"
    ...
    /sbin/kexec -e
    log_failure_msg "kexec failed"
  }

instead of triggering a standard reboot.

In Devuan Excalibur (testing), all init-scripts for kexec are gone.  Now
running `kexec` just triggers a reboot, it appears `kexec -e` is never
actually executed.

Note that /usr/share/doc/kexec-tools/README.Debian still claims, that
init-scripts are installed, when in fact they are not.

I think systemd now natively includes a kexec hook for reboot, while
sysvinit-core does not, so on Devuan we still need those init hooks,
while they are gone on Debian!?

-- System Information:
Distributor ID:	Devuan
Description:	Devuan GNU/Linux 6 (excalibur)
Release:	6
Codename:	excalibur
Architecture: armv7l

Kernel: Linux 6.12.53-dk2 (SMP w/4 CPU threads)
Locale: LANG=en_US.UTF-8, LC_CTYPE=en_US.UTF-8 (charmap=UTF-8), LANGUAGE=en_US:en
Shell: /bin/sh linked to /usr/bin/dash
Init: sysvinit (via /sbin/init)
LSM: AppArmor: enabled

Versions of packages kexec-tools depends on:
ii  debconf [debconf-2.0]  1.5.91
ii  dpkg                   1.22.21
ii  libc6                  2.41-12

kexec-tools recommends no packages.

kexec-tools suggests no packages.

-- debconf information excluded

Information forwarded to devuan-bugs@lists.dyne.org, devuan-dev@lists.dyne.org:
bug#917; Package kexec-tools. (Wed, 22 Oct 2025 13:12:02 GMT) (full text, mbox, link).


Message #8 received at 917@bugs.devuan.org (full text, mbox, reply):

From: Mark Hindley <mark@hindley.org.uk>
To: David Kuehling <dvdkhlng@posteo.de>, 917@bugs.devuan.org
Subject: Re: [devuan-dev] bug#917: /usr/sbin/kexec: The /etc/init.d/kexec script is now missing, breaking kexec functionality.
Date: Wed, 22 Oct 2025 14:10:18 +0100
Control: tags -1 debian
Control: forwarded -1 https://bugs.debian.org/1111802

David,

Thanks for this.

This issue is also apparent on Debian non-systemd installations. See #1111802.

The Debian maintainer appears open to resolving it. It may be worthwhile asking
politely if there is a solution pending.

Thanks

Mark

Added tag(s) debian. Request was from Mark Hindley <mark@hindley.org.uk> to 917-submit@bugs.devuan.org. (Wed, 22 Oct 2025 13:12:02 GMT) (full text, mbox, link).


Set bug forwarded-to-address to 'https://bugs.debian.org/1111802'. Request was from Mark Hindley <mark@hindley.org.uk> to 917-submit@bugs.devuan.org. (Wed, 22 Oct 2025 13:12:02 GMT) (full text, mbox, link).


Send a report that this bug log contains spam.


Devuan BTS -- Powered by Debian bug tracking system
Copyright (C) 1999 Darren O. Benham,
1997,2003 nCipher Corporation Ltd, 1994-97 Ian Jackson,
2005-2017 Don Armstrong, and many other contributors.

Devuan Bugs Owner <owner@bugs.devuan.org>.
Last modified: Thu Nov 27 06:43:46 2025;