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