mirror of
https://src.fedoraproject.org/rpms/grub2.git
synced 2024-11-25 06:37:33 +00:00
db7cf3a089
Add some fixes for BLS parsing logic and also make 20-grub.install script to query the relative path of the kernel and initramfs images, so BLS can also work when /boot is not a mount point or is a btrfs subvolume. Also pull some build fixes. Resolves: rhbz#1588184 Signed-off-by: Javier Martinez Canillas <javierm@redhat.com>
30 lines
954 B
Diff
30 lines
954 B
Diff
From 8278e40fdc4a4db0865fc632cbe2dcf7c124ba7a 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 226/243] 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 f5daefb9d24..b24bb410dc0 100644
|
|
--- a/util/grub.d/10_linux.in
|
|
+++ b/util/grub.d/10_linux.in
|
|
@@ -149,6 +149,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
|
|
--
|
|
2.17.1
|
|
|