bless-boot: skip gracefully on kexec

If KExecsCount > 0 then do not attempt to mark a UKI, as the stub (and also
any addon and the bootloader) will not have been exercised, so there's no
guaranteed a full reboot with the same image will actually work.

Fixes https://github.com/systemd/systemd/issues/43738
This commit is contained in:
Luca Boccassi
2026-09-22 21:25:20 +02:00
parent f0f521c147
commit 06c2dfa73c
3 changed files with 43 additions and 0 deletions
+3
View File
@@ -45,6 +45,9 @@
left" numeric boot counters from the filename, which indicates to future invocations of the boot loader
that the entry has completed booting successfully at least once. (This service will hence rename the boot
loader entry file or unified kernel image file on the first successful boot.)</para>
<para>Note that if the system was booted via kexec and LUO is available and enabled, this service will
skip marking the boot entry as good or bad, since kexec bypasses the EFI boot loader entirely.</para>
</refsect1>
<refsect1>