Bug#1111737: orphan-sysvinit-scripts: please include scripts for kexec-tools, which were dropped in trixie

g1pi at libero.it g1pi at libero.it
Fri Aug 22 10:12:39 BST 2025


On Fri, Aug 22, 2025 at 08:53:54AM +0100, Mark Hindley wrote:
> Hi,
> 
> A similar request was made to Devuan a while ago[1].
> 
> My reading is that an initscript is no longer required. Based on
> the changelog entry[2], the non-systemd way of doing this is now
> 
>  kexec-load-kernel; reboot
> 
> Mark
> 
> 
> [1]  https://bugs.devuan.org/871
> 
> [2]  https://sources.debian.org/src/kexec-tools/1%3A2.0.29-2/debian/changelog#L60
> 

Hi.

Not sure about Devuan, but definitely it is required on debian.

I tried "kexec-load-kernel; reboot" on my trixie system, and it did
not work as expected: just a standard reboot through the boot loader.

A kexec reboot requires two steps:

1. load kernel, initrd, and command line with "kexec -l": this is done
   by kexec-load-kernel (or manually)

2. in the /etc/rc6.d sequence, just after the root filesystem is unmounted,
   invoke "kexec -e" instead of the usual "reboot -f -d".

Don't know about systemd: perhaps it detects that a kernel has been loaded
(peeking at /sys/kernel/kexec_loaded) and does the right thing.

But for SysV, /etc/init.d/kexec is the only place where "kexec -e"
is invoked.  If it's missing, then after /etc/init.d/umountroot the
sequence proceeds to /etc/init.d/reboot, which just does "reboot -d -f".

Regards,
	g.b.



More information about the Debian-init-diversity mailing list