:: [devuan-dev] bug#917: /usr/sbin/kex…
Top Page
Delete this message
Reply to this message
Author: David Kuehling
Date:  
To: Devuan Bug Tracking System
Subject: [devuan-dev] bug#917: /usr/sbin/kexec: The /etc/init.d/kexec script is now missing, breaking kexec functionality.

Package: kexec-tools
Version: 1:2.0.29-2
Severity: normal
File: /usr/sbin/kexec
X-Debbugs-Cc: dvdkhlng@???

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