Blame SOURCES/0137-Set-the-first-boot-menu-entry-as-default-when-using-.patch

d9d99f
From 0000000000000000000000000000000000000000 Mon Sep 17 00:00:00 2001
d9d99f
From: Javier Martinez Canillas <javierm@redhat.com>
d9d99f
Date: Fri, 6 Apr 2018 14:08:36 +0200
d9d99f
Subject: [PATCH] Set the first boot menu entry as default when using BLS
d9d99f
 fragments
d9d99f
d9d99f
When BootLoaderSpec configuration files are used, the default boot menu
d9d99f
entry is always set to the first entry as sorted by the blscfg command.
d9d99f
d9d99f
Suggested-by: Peter Jones <pjones@redhat.com>
d9d99f
Signed-off-by: Javier Martinez Canillas <javierm@redhat.com>
d9d99f
---
d9d99f
 util/grub.d/10_linux.in | 1 +
d9d99f
 1 file changed, 1 insertion(+)
d9d99f
d9d99f
diff --git a/util/grub.d/10_linux.in b/util/grub.d/10_linux.in
b71686
index 839f1fdb6..89cd71d85 100644
d9d99f
--- a/util/grub.d/10_linux.in
d9d99f
+++ b/util/grub.d/10_linux.in
d9d99f
@@ -144,6 +144,7 @@ if [ -s \$prefix/grubenv ]; then
d9d99f
 fi
d9d99f
 EOF
d9d99f
 
d9d99f
+    ${grub_editenv} - set saved_entry=0
d9d99f
     ${grub_editenv} - set kernelopts="root=${linux_root_device_thisversion} ro ${args}"
d9d99f
 
d9d99f
     exit 0