46968b6
From 0000000000000000000000000000000000000000 Mon Sep 17 00:00:00 2001
46968b6
From: Hans de Goede <hdegoede@redhat.com>
46968b6
Date: Thu, 23 Jul 2020 09:27:36 +0200
46968b6
Subject: [PATCH] systemd-integration.sh: Also set old menu_show_once grubenv
46968b6
 var
46968b6
46968b6
Downstream RH / Fedora patch for compatibility with old, not (yet)
46968b6
regenerated grub.cfg files which miss the menu_show_once_timeout check.
46968b6
This older grubenv variable leads to a fixed timeout of 60 seconds.
46968b6
46968b6
Note that the new menu_show_once_timeout will overrule these 60 seconds
46968b6
if both are set and the grub.cfg does have the menu_show_once_timeout
46968b6
check.
46968b6
46968b6
Signed-off-by: Hans de Goede <hdegoede@redhat.com>
46968b6
---
46968b6
 util/systemd/systemd-integration.sh.in | 5 +++++
46968b6
 1 file changed, 5 insertions(+)
46968b6
46968b6
diff --git a/util/systemd/systemd-integration.sh.in b/util/systemd/systemd-integration.sh.in
e622855
index dc1218597b..a4c071c5b0 100644
46968b6
--- a/util/systemd/systemd-integration.sh.in
46968b6
+++ b/util/systemd/systemd-integration.sh.in
46968b6
@@ -4,3 +4,8 @@ TIMEOUT_USEC=$(cat /run/systemd/reboot-to-boot-loader-menu)
46968b6
 TIMEOUT=$(((TIMEOUT_USEC + 500000) / 1000000))
46968b6
 
46968b6
 @grub_editenv@ - set menu_show_once_timeout=$TIMEOUT
46968b6
+
46968b6
+# Downstream RH / Fedora patch for compatibility with old, not (yet)
46968b6
+# regenerated grub.cfg files which miss the menu_show_once_timeout check
46968b6
+# this older grubenv variable leads to a fixed timeout of 60 seconds
46968b6
+@grub_editenv@ - set menu_show_once=1