<div dir="ltr">Hi Ian,<div><br></div><div>I've just tried on a fresh F42 VM and it seems to work correctly. </div><div><br></div><div>Out of curiosity, what is the contents of /proc/sys/kernel/bootloader_type after unsuccessful kexec (i.e. normal reboot) in your case? </div><div><br></div><div>Also can you make sure you don't have $SYSTEMCTL_SKIP_AUTO_KEXEC= variable set when calling systemctl reboot after manually loading kexec kernel.</div><div><br></div><div>Michal</div><div><br></div></div><br><div class="gmail_quote gmail_quote_container"><div dir="ltr" class="gmail_attr">On Sun, Aug 10, 2025 at 7:49 PM Ian Pilcher <<a href="mailto:arequipeno@gmail.com">arequipeno@gmail.com</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left-width:1px;border-left-style:solid;border-left-color:rgb(204,204,204);padding-left:1ex">I'm playing around, trying to use 'systemctl kexec' for faster reboots.<br>
Thus far, I haven't been able to get it to work; I'm always getting a<br>
"normal" reboot (including the firmware POST).<br>
<br>
My system (Fedora 42) is using UEFI boot, with secure boot disabled.<br>
systemd-boot is the bootloader.<br>
<br>
> $ sudo bootctl --no-pager<br>
> System:<br>
> Firmware: UEFI 2.40 (American Megatrends 5.10)<br>
> Firmware Arch: x64<br>
> Secure Boot: disabled (setup)<br>
> TPM2 Support: no<br>
> Measured UKI: no<br>
> Boot into FW: supported<br>
> <br>
> Current Boot Loader:<br>
> Product: systemd-boot 257.7-1.fc42<br>
> Features: ✓ Boot counting<br>
> ✓ Menu timeout control<br>
> ✓ One-shot menu timeout control<br>
> ✓ Default entry control<br>
> ✓ One-shot entry control<br>
> ✓ Support for XBOOTLDR partition<br>
> ✓ Support for passing random seed to OS<br>
> ✓ Load drop-in drivers<br>
> ✓ Support Type #1 sort-key field<br>
> ✓ Support @saved pseudo-entry<br>
> ✓ Support Type #1 devicetree field<br>
> ✓ Enroll SecureBoot keys<br>
> ✓ Retain SHIM protocols<br>
> ✓ Menu can be disabled<br>
> ✓ Multi-Profile UKIs are supported<br>
> ✓ Boot loader set partition information<br>
> Partition: /dev/disk/by-partuuid/e3cdac2c-91c9-4be9-abdd-b97a9dea16f0<br>
> Loader: └─/EFI/SYSTEMD/SYSTEMD-BOOTX64.EFI<br>
> Current Entry: e74ab0d2949c479eb03abdab1b1acd41-6.15.9-201.fc42.x86_64.conf<br>
> <br>
> Random Seed:<br>
> System Token: set<br>
> Exists: yes<br>
> <br>
> Available Boot Loaders on ESP:<br>
> ESP: /efi (/dev/disk/by-partuuid/e3cdac2c-91c9-4be9-abdd-b97a9dea16f0)<br>
> File: ├─/EFI/systemd/systemd-bootx64.efi (systemd-boot 257.7-1.fc42)<br>
> ├─/EFI/BOOT/BOOTX64.EFI (systemd-boot v245.8-2.fc32)<br>
> ├─/EFI/BOOT/fallback.efi<br>
> └─/EFI/BOOT/fbx64.efi<br>
> <br>
> Boot Loaders Listed in EFI Variables:<br>
> Title: Linux<br>
> ID: 0x0000<br>
> Status: active, boot-order<br>
> Partition: /dev/disk/by-partuuid/e3cdac2c-91c9-4be9-abdd-b97a9dea16f0<br>
> File: └─/EFI/SYSTEMD/SYSTEMD-BOOTX64.EFI<br>
> <br>
> Title: Windows Boot Manager<br>
> ID: 0x0005<br>
> Status: active, boot-order<br>
> Partition: /dev/disk/by-partuuid/e3cdac2c-91c9-4be9-abdd-b97a9dea16f0<br>
> File: └─/EFI/MICROSOFT/BOOT/BOOTMGFW.EFI<br>
> <br>
> Boot Loader Entries:<br>
> $BOOT: /efi (/dev/disk/by-partuuid/e3cdac2c-91c9-4be9-abdd-b97a9dea16f0)<br>
> token: fedora<br>
> <br>
> Default Boot Loader Entry:<br>
> type: Boot Loader Specification Type #1 (.conf)<br>
> title: Fedora Linux 42 (Adams) (6.15.9-201.fc42.x86_64)<br>
> id: e74ab0d2949c479eb03abdab1b1acd41-6.15.9-201.fc42.x86_64.conf<br>
> source: /efi//loader/entries/e74ab0d2949c479eb03abdab1b1acd41-6.15.9-201.fc42.x86_64.conf (on the EFI System Partition)<br>
> sort-key: fedora<br>
> version: 6.15.9-201.fc42.x86_64<br>
> machine-id: e74ab0d2949c479eb03abdab1b1acd41<br>
> linux: /efi//e74ab0d2949c479eb03abdab1b1acd41/6.15.9-201.fc42.x86_64/linux<br>
> initrd: /efi//e74ab0d2949c479eb03abdab1b1acd41/6.15.9-201.fc42.x86_64/initrd<br>
> options: root=/dev/mapper/vg_breadbox-lv_fedora ro <a href="http://rd.lvm.lv" rel="noreferrer" target="_blank">rd.lvm.lv</a>=vg_breadbox/lv_fedora elevator=deadline intel_iommu=on systemd.machine_id=e74ab0d2949c479eb03abdab1b1acd41<br>
<br>
I don't see any obviously fatal errors when I do a dry run.<br>
<br>
> $ sudo SYSTEMD_LOG_LEVEL=debug systemctl --dry-run kexec<br>
> Bus n/a: changing state UNSET → OPENING<br>
> sd-bus: starting bus by connecting to /run/dbus/system_bus_socket...<br>
> Bus n/a: changing state OPENING → AUTHENTICATING<br>
> Bus n/a: changing state AUTHENTICATING → HELLO<br>
> Sent message type=method_call sender=n/a destination=org.freedesktop.DBus path=/org/freedesktop/DBus interface=org.freedesktop.DBus member=Hello cookie=1 reply_cookie=0 signature=n/a error-name=n/a error-message=n/a<br>
> Got message type=method_return sender=org.freedesktop.DBus destination=:1.17 path=n/a interface=n/a member=n/a cookie=4294967295 reply_cookie=1 signature=s error-name=n/a error-message=n/a<br>
> Bus n/a: changing state HELLO → RUNNING<br>
> Sent message type=method_call sender=n/a destination=org.freedesktop.login1 path=/org/freedesktop/login1 interface=org.freedesktop.login1.Manager member=ListInhibitors cookie=2 reply_cookie=0 signature=n/a error-name=n/a error-message=n/a<br>
> Got message type=method_return sender=:1.2 destination=:1.17 path=n/a interface=n/a member=n/a cookie=33 reply_cookie=2 signature=a(ssssuu) error-name=n/a error-message=n/a<br>
> Found container virtualization none.<br>
> /dev/sda2: Partition has wrong PART_ENTRY_TYPE=0fc63daf-8483-4772-8e79-3d69d8477de4 for XBOOTLDR partition.<br>
> Reading EFI variable /sys/firmware/efi/efivars/LoaderEntryOneShot-4a67b082-0a4c-41cf-b6c7-440b29bb8c4f.<br>
> open("/sys/firmware/efi/efivars/LoaderEntryOneShot-4a67b082-0a4c-41cf-b6c7-440b29bb8c4f") failed: No such file or directory<br>
> Reading EFI variable /sys/firmware/efi/efivars/LoaderEntryDefault-4a67b082-0a4c-41cf-b6c7-440b29bb8c4f.<br>
> open("/sys/firmware/efi/efivars/LoaderEntryDefault-4a67b082-0a4c-41cf-b6c7-440b29bb8c4f") failed: No such file or directory<br>
> Reading EFI variable /sys/firmware/efi/efivars/LoaderEntrySelected-4a67b082-0a4c-41cf-b6c7-440b29bb8c4f.<br>
> Found default: id "e74ab0d2949c479eb03abdab1b1acd41-6.15.9-201.fc42.x86_64.conf" is matched by pattern "e74ab0d2949c479eb03abdab1b1acd41-*"<br>
> Found default boot loader entry in file "/efi/loader/entries/e74ab0d2949c479eb03abdab1b1acd41-6.15.9-201.fc42.x86_64.conf"<br>
> Would run /usr/sbin/kexec --load "/efi/e74ab0d2949c479eb03abdab1b1acd41/6.15.9-201.fc42.x86_64/linux" --append "root=/dev/mapper/vg_breadbox-lv_fedora ro <a href="http://rd.lvm.lv" rel="noreferrer" target="_blank">rd.lvm.lv</a>=vg_breadbox/lv_fedora elevator=deadline intel_iommu=on systemd.machine_id=e74ab0d2949c479eb03abdab1b1acd41" --initrd "/efi/e74ab0d2949c479eb03abdab1b1acd41/6.15.9-201.fc42.x86_64/initrd"<br>
> Would set wall message "".<br>
> Would execute org.freedesktop.login1.Manager RebootWithFlags dbus call.<br>
> Bus n/a: changing state RUNNING → CLOSED<br>
<br>
Nonetheless, running 'systemctl kexec' is doing a normal reboot,<br>
including the firmware POST.<br>
<br>
Any pointers on how to troubleshoot this further would be appreciated.<br>
<br>
Thanks!<br>
<br>
-- <br>
========================================================================<br>
If your user interface is intuitive in retrospect ... it isn't intuitive<br>
========================================================================<br>
<br>
</blockquote></div>