2016-03-04 18:32:29 +00:00
|
|
|
From 49a6a25e62a91c5ce5d61db8e6696fda42af1874 Mon Sep 17 00:00:00 2001
|
2014-07-02 15:49:28 +00:00
|
|
|
From: Fedora Ninjas <grub2-owner@fedoraproject.org>
|
|
|
|
Date: Wed, 12 Feb 2014 14:54:04 -0500
|
2016-03-04 18:32:29 +00:00
|
|
|
Subject: [PATCH 47/85] Use the default device tree from the grub default file
|
2014-07-02 15:49:28 +00:00
|
|
|
|
|
|
|
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
|
2016-03-04 18:32:29 +00:00
|
|
|
index 4345ea7..41e6afe 100644
|
2014-07-02 15:49:28 +00:00
|
|
|
--- a/util/grub-mkconfig.in
|
|
|
|
+++ b/util/grub-mkconfig.in
|
2015-07-22 13:44:51 +00:00
|
|
|
@@ -227,7 +227,8 @@ export GRUB_DEFAULT \
|
2014-07-02 15:49:28 +00:00
|
|
|
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
|
2016-03-04 18:32:29 +00:00
|
|
|
index dc3d081..30e0e85 100644
|
2014-07-02 15:49:28 +00:00
|
|
|
--- a/util/grub.d/10_linux.in
|
|
|
|
+++ b/util/grub.d/10_linux.in
|
2016-03-04 18:32:29 +00:00
|
|
|
@@ -232,8 +232,8 @@ while [ "x$list" != "x" ] ; do
|
2014-07-02 15:49:28 +00:00
|
|
|
|
|
|
|
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
|
|
|
|
--
|
2016-03-04 18:32:29 +00:00
|
|
|
2.5.0
|
2014-07-02 15:49:28 +00:00
|
|
|
|