behaviour of "systemctl kexec" not matching man page, sabotaging kexec reboots with kexec-tools

Michael Biebl biebl at debian.org
Fri Feb 21 11:07:12 GMT 2020


[dropping debian-devel]

Am 20.02.20 um 18:30 schrieb Timo Weingärtner:
> 
> IMO there are some options to proceed:
> 1) improve the heuristic in systemctl so that it succeeds if kexec-tools is
>    installed, maybe with some option in system.conf.
> 2) work around the systemd bug in kexec-tools by loading the kernel at boot
>    and kernel install times¹, wasting about 40 MiB of RAM.
> 3) provide a wrapper script (say "kexecreboot") in kexec-tools that runs the
>    long version above and also loads a kernel in the case of sysvinit with
>    kexec-tools/load_kexec=false.
> 4) provide a wrapper script and dpkg-divert systemctl.

I think https://github.com/systemd/systemd/issues/7730 should be helpful
to understand what's going on.
"systemctl kexec" as it is today requires EFI boot and the kernels being
installed following the boot loader spec [1], which is not the case for
Debian. The error messages you are seeing are a result of that.

Regards,
Michael

[1] https://systemd.io/BOOT_LOADER_SPECIFICATION/




-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 833 bytes
Desc: OpenPGP digital signature
URL: <http://alioth-lists.debian.net/pipermail/pkg-systemd-maintainers/attachments/20200221/52875180/attachment.sig>


More information about the Pkg-systemd-maintainers mailing list