bless-boot-generator: skip if current system is entered via soft-reboot

Fixes #40386
This commit is contained in:
Mike Yuan
2026-01-20 11:09:27 +09:00
committed by Yu Watanabe
parent 9503cc3b6d
commit ae039016f4
+5
View File
@@ -26,6 +26,11 @@ static int run(const char *dest, const char *dest_early, const char *dest_late)
return 0;
}
if (generator_soft_rebooted()) {
log_debug("Skipping generator, current system is entered via soft-reboot.");
return 0;
}
if (!is_efi_boot()) {
log_debug("Skipping generator, not an EFI boot.");
return 0;