grub2/0312-Set-the-first-boot-menu-entry-as-default-when-using-.patch
Peter Jones 6b2dd0f731 Another arm building fix.
Signed-off-by: Peter Jones <pjones@redhat.com>
2018-07-12 10:56:34 -04:00

28 lines
934 B
Diff

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