|
|
0dc71c |
From 5f1ee8ff7170321250874116eb80cbec83cc70ab Mon Sep 17 00:00:00 2001
|
|
|
0dc71c |
From: Fedora Ninjas <grub2-owner@fedoraproject.org>
|
|
|
0dc71c |
Date: Wed, 12 Feb 2014 14:54:04 -0500
|
|
|
0dc71c |
Subject: [PATCH 137/143] Use the default device tree from the grub default
|
|
|
0dc71c |
file
|
|
|
0dc71c |
|
|
|
0dc71c |
instead of hardcoding a value.
|
|
|
0dc71c |
|
|
|
0dc71c |
Signed-off-by: David A. Marlin <dmarlin@redhat.com>
|
|
|
0dc71c |
---
|
|
|
0dc71c |
util/grub-mkconfig.in | 3 ++-
|
|
|
0dc71c |
util/grub.d/10_linux.in | 4 ++--
|
|
|
0dc71c |
2 files changed, 4 insertions(+), 3 deletions(-)
|
|
|
0dc71c |
|
|
|
0dc71c |
diff --git a/util/grub-mkconfig.in b/util/grub-mkconfig.in
|
|
|
0dc71c |
index b00f9e6..beb22de 100644
|
|
|
0dc71c |
--- a/util/grub-mkconfig.in
|
|
|
0dc71c |
+++ b/util/grub-mkconfig.in
|
|
|
0dc71c |
@@ -224,7 +224,8 @@ export GRUB_DEFAULT \
|
|
|
0dc71c |
GRUB_ENABLE_CRYPTODISK \
|
|
|
0dc71c |
GRUB_BADRAM \
|
|
|
0dc71c |
GRUB_OS_PROBER_SKIP_LIST \
|
|
|
0dc71c |
- GRUB_DISABLE_SUBMENU
|
|
|
0dc71c |
+ GRUB_DISABLE_SUBMENU \
|
|
|
0dc71c |
+ GRUB_DEFAULT_DTB
|
|
|
0dc71c |
|
|
|
0dc71c |
if test "x${grub_cfg}" != "x"; then
|
|
|
0dc71c |
rm -f "${grub_cfg}.new"
|
|
|
0dc71c |
diff --git a/util/grub.d/10_linux.in b/util/grub.d/10_linux.in
|
|
|
0dc71c |
index 2639511..6480cd6 100644
|
|
|
0dc71c |
--- a/util/grub.d/10_linux.in
|
|
|
0dc71c |
+++ b/util/grub.d/10_linux.in
|
|
|
0dc71c |
@@ -228,8 +228,8 @@ while [ "x$list" != "x" ] ; do
|
|
|
0dc71c |
|
|
|
0dc71c |
fdt=
|
|
|
0dc71c |
for i in "dtb-${version}" "dtb-${alt_version}"; do
|
|
|
0dc71c |
- if test -e "${dirname}/${i}/apm-mustang.dtb" ; then
|
|
|
0dc71c |
- fdt="${i}/apm-mustang.dtb"
|
|
|
0dc71c |
+ if test -f "${dirname}/${i}/${GRUB_DEFAULT_DTB}" ; then
|
|
|
0dc71c |
+ fdt="${i}/${GRUB_DEFAULT_DTB}"
|
|
|
0dc71c |
break
|
|
|
0dc71c |
fi
|
|
|
0dc71c |
done
|
|
|
0dc71c |
--
|
|
|
0dc71c |
1.9.3
|
|
|
0dc71c |
|