]> git.ipfire.org Git - thirdparty/systemd.git/commitdiff
bless-boot-generator: skip if current system is entered via soft-reboot
authorMike Yuan <me@yhndnzj.com>
Mon, 19 Jan 2026 23:33:19 +0000 (00:33 +0100)
committerYu Watanabe <watanabe.yu+github@gmail.com>
Tue, 20 Jan 2026 02:09:27 +0000 (11:09 +0900)
Fixes #40386

src/bless-boot/bless-boot-generator.c

index 1a99ed5b68448e5605e1ff1ebd511c2f7048301f..85e7ca5f56ede90581ef8f710fb35b928e6682d7 100644 (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;