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

Full log


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

Received: (at submit) by bugs.devuan.org; 22 Oct 2025 12:58:44 +0000
Return-Path: <dvdkhlng@posteo.de>
Delivered-To: bugs@devuan.org
Received: from email.devuan.org [2a01:4f9:fff1:13::5fd9:f9e4]
	by doc.devuan.org with IMAP (fetchmail-6.4.39)
	for <debbugs@localhost> (single-drop); Wed, 22 Oct 2025 12:58:44 +0000 (UTC)
Received: from email.devuan.org
	by email.devuan.org with LMTP
	id 6UokOgPV+GhuNAAAmSBk0A
	(envelope-from <dvdkhlng@posteo.de>)
	for <bugs@devuan.org>; Wed, 22 Oct 2025 12:58:43 +0000
Authentication-Results: email.devuan.org;
	dkim=pass (2048-bit key; secure) header.d=posteo.de header.i=@posteo.de header.a=rsa-sha256 header.s=2017 header.b=ipyB2WVF;
	dkim-atps=neutral
Received: by email.devuan.org (Postfix, from userid 109)
	id DABB1220; Wed, 22 Oct 2025 12:58:43 +0000 (UTC)
X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on email.devuan.org
X-Spam-Level: 
X-Spam-Status: No, score=-0.5 required=5.0 tests=DKIM_INVALID,DKIM_SIGNED,
	RCVD_IN_DNSWL_LOW,RCVD_IN_MSPIKE_H3,RCVD_IN_MSPIKE_WL,SPF_PASS,
	T_SCC_BODY_TEXT_LINE autolearn=ham autolearn_force=no version=3.4.6
Received-SPF: Pass (mailfrom) identity=mailfrom; client-ip=185.67.36.66; helo=mout02.posteo.de; envelope-from=dvdkhlng@posteo.de; receiver=bugs.devuan.org 
Received: from mout02.posteo.de (mout02.posteo.de [185.67.36.66])
	by email.devuan.org (Postfix) with ESMTPS id 1E943A5
	for <submit@bugs.devuan.org>; Wed, 22 Oct 2025 12:58:43 +0000 (UTC)
Received: from submission (posteo.de [185.67.36.169]) 
	by mout02.posteo.de (Postfix) with ESMTPS id 3DE1E240101
	for <submit@bugs.devuan.org>; Wed, 22 Oct 2025 14:58:42 +0200 (CEST)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=posteo.de; s=2017;
	t=1761137922; bh=4/ES19h2M99Xcwl0FNkyiVm3zRvYjDf6D8VN+5Y0xcU=;
	h=From:To:Subject:Date:Message-ID:MIME-Version:Content-Type:From;
	b=ipyB2WVFCGrnbWDwoB1krM01ca5aJQIedE4cpBey8qntFzpAdKVRP7dOZIj/q7Wgp
	 2AlN9xvczA7xSSwyJ5Q8OH0bWiiYIqe36TDZGrqGDMefLfjnBdGhJkkKjsEMIkA8Sa
	 CeUm0BeZ22LoSyJBKGb8K7IC/Pt7Fc1sXavzufwjDcyr4luIU7REgXOcgrDUQdeX4z
	 6lLmRQGYtIE3oH/EX+dMKfKEEpPexqnAZGD6vVKskXknMqIWkn7QYnxV94Diqh/MRq
	 mlo2y/jQUBRMH7P0q7euv0DwO9Q/aNEZoEHnRUwor7+/2hAzFQsgGl1rq2s0daPVt5
	 jTqYvqmd9fjbg==
Received: from customer (localhost [127.0.0.1])
	by submission (posteo.de) with ESMTPSA id 4cs8Nx6CqYz9rxK
	for <submit@bugs.devuan.org>; Wed, 22 Oct 2025 14:58:41 +0200 (CEST)
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
Message-ID: <87h5vrccua.fsf@posteo.de>
MIME-Version: 1.0
Content-Type: text/plain
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

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 08:11:39 2025;