Blame SOURCES/0167-systemd-integration.sh-Also-set-old-menu_show_once-g.patch

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