nalika / rpms / grub2

Forked from rpms/grub2 2 years ago
Clone

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

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