mirror of
https://src.fedoraproject.org/rpms/grub2.git
synced 2024-11-24 06:22:43 +00:00
dc178ac546
- Use version field to sort BLS entries if id field isn't defined - Add version field to BLS fragments generated by 20-grub.install Signed-off-by: Javier Martinez Canillas <javierm@redhat.com>
46 lines
1.3 KiB
Diff
46 lines
1.3 KiB
Diff
From 5111bdda0d0a21ab02f6c9aa441a32cd02c6bc3f Mon Sep 17 00:00:00 2001
|
|
From: Fedora Ninjas <grub2-owner@fedoraproject.org>
|
|
Date: Wed, 12 Feb 2014 14:54:04 -0500
|
|
Subject: [PATCH 115/238] Use the default device tree from the grub default
|
|
file
|
|
|
|
instead of hardcoding a value.
|
|
|
|
Signed-off-by: David A. Marlin <dmarlin@redhat.com>
|
|
---
|
|
util/grub-mkconfig.in | 3 ++-
|
|
util/grub.d/10_linux.in | 4 ++--
|
|
2 files changed, 4 insertions(+), 3 deletions(-)
|
|
|
|
diff --git a/util/grub-mkconfig.in b/util/grub-mkconfig.in
|
|
index c088b705442..9d595ac058a 100644
|
|
--- a/util/grub-mkconfig.in
|
|
+++ b/util/grub-mkconfig.in
|
|
@@ -235,7 +235,8 @@ export GRUB_DEFAULT \
|
|
GRUB_ENABLE_CRYPTODISK \
|
|
GRUB_BADRAM \
|
|
GRUB_OS_PROBER_SKIP_LIST \
|
|
- GRUB_DISABLE_SUBMENU
|
|
+ GRUB_DISABLE_SUBMENU \
|
|
+ GRUB_DEFAULT_DTB
|
|
|
|
if test "x${grub_cfg}" != "x"; then
|
|
rm -f "${grub_cfg}.new"
|
|
diff --git a/util/grub.d/10_linux.in b/util/grub.d/10_linux.in
|
|
index 462b461ff49..a9692a0c2a2 100644
|
|
--- a/util/grub.d/10_linux.in
|
|
+++ b/util/grub.d/10_linux.in
|
|
@@ -232,8 +232,8 @@ while [ "x$list" != "x" ] ; do
|
|
|
|
fdt=
|
|
for i in "dtb-${version}" "dtb-${alt_version}"; do
|
|
- if test -e "${dirname}/${i}/apm-mustang.dtb" ; then
|
|
- fdt="${i}/apm-mustang.dtb"
|
|
+ if test -f "${dirname}/${i}/${GRUB_DEFAULT_DTB}" ; then
|
|
+ fdt="${i}/${GRUB_DEFAULT_DTB}"
|
|
break
|
|
fi
|
|
done
|
|
--
|
|
2.17.0
|
|
|