File menu-force.patch of Package systemd

Commit ID: ce557df14620731a014248a37af9075e510f4212
Change ID: rrxplozklsswyrrtyqsytlstvzzwyvxs
Author   : Danilo Spinella <danilo.spinella@suse.com> (2025-09-30 14:59:25)
Committer: Danilo Spinella <danilo.spinella@suse.com> (2025-09-30 15:15:44)
Signature: good signature by Danilo Spinella <danilo.spinella@suse.com> 1733BCAC9AF70936

    (no description set)

diff --git a/menu-force.patch b/menu-force.patch
new file mode 100644
index 0000000000..e69de29bb2
diff --git a/src/bootctl/bootctl-set-efivar.c b/src/bootctl/bootctl-set-efivar.c
index b102d6600e..cbbb145059 100644
--- a/src/bootctl/bootctl-set-efivar.c
+++ b/src/bootctl/bootctl-set-efivar.c
@@ -19,6 +19,7 @@
         char16_t *encoded;
         usec_t timeout;
         bool menu_disabled = false;
+        bool menu_force = false;
         int r;
 
         assert(arg1);
@@ -32,7 +33,7 @@
          * although the ship has sailed and the side-effects are self-contained.
          */
         if (streq(arg1, "menu-force"))
-                timeout = USEC_INFINITY;
+                menu_force = true;
         else if (streq(arg1, "menu-hidden"))
                 timeout = 0;
         else if (streq(arg1, "menu-disabled")) {
@@ -56,6 +57,8 @@
 
         if (menu_disabled)
                 xsprintf(utf8, "menu-disabled");
+        else if (menu_force)
+                xsprintf(utf8, "menu-force");
         else
                 xsprintf(utf8, USEC_FMT, MIN(timeout / USEC_PER_SEC, UINT32_MAX));
 
openSUSE Build Service is sponsored by