bc092b
From f158ae5fa54ff3bdaf8720ee2667430037d978c6 Mon Sep 17 00:00:00 2001
f4c76c
From: Fedora Ninjas <grub2-owner@fedoraproject.org>
f4c76c
Date: Wed, 12 Feb 2014 14:54:04 -0500
bc092b
Subject: [PATCH 101/176] Use the default device tree from the grub default
bc092b
 file
f4c76c
f4c76c
instead of hardcoding a value.
f4c76c
f4c76c
Signed-off-by: David A. Marlin <dmarlin@redhat.com>
f4c76c
---
f4c76c
 util/grub-mkconfig.in   | 3 ++-
f4c76c
 util/grub.d/10_linux.in | 4 ++--
f4c76c
 2 files changed, 4 insertions(+), 3 deletions(-)
f4c76c
f4c76c
diff --git a/util/grub-mkconfig.in b/util/grub-mkconfig.in
bc092b
index c088b7054..9d595ac05 100644
f4c76c
--- a/util/grub-mkconfig.in
f4c76c
+++ b/util/grub-mkconfig.in
d9747d
@@ -235,7 +235,8 @@ export GRUB_DEFAULT \
f4c76c
   GRUB_ENABLE_CRYPTODISK \
f4c76c
   GRUB_BADRAM \
f4c76c
   GRUB_OS_PROBER_SKIP_LIST \
f4c76c
-  GRUB_DISABLE_SUBMENU
f4c76c
+  GRUB_DISABLE_SUBMENU \
f4c76c
+  GRUB_DEFAULT_DTB
f4c76c
 
f4c76c
 if test "x${grub_cfg}" != "x"; then
f4c76c
   rm -f "${grub_cfg}.new"
f4c76c
diff --git a/util/grub.d/10_linux.in b/util/grub.d/10_linux.in
bc092b
index 462b461ff..a9692a0c2 100644
f4c76c
--- a/util/grub.d/10_linux.in
f4c76c
+++ b/util/grub.d/10_linux.in
b9efc5
@@ -232,8 +232,8 @@ while [ "x$list" != "x" ] ; do
f4c76c
 
f4c76c
   fdt=
f4c76c
   for i in "dtb-${version}" "dtb-${alt_version}"; do
f4c76c
-    if test -e "${dirname}/${i}/apm-mustang.dtb" ; then
f4c76c
-      fdt="${i}/apm-mustang.dtb"
f4c76c
+    if test -f "${dirname}/${i}/${GRUB_DEFAULT_DTB}" ; then
f4c76c
+      fdt="${i}/${GRUB_DEFAULT_DTB}"
f4c76c
       break
f4c76c
     fi
f4c76c
   done
f4c76c
-- 
bc092b
2.13.0
f4c76c