Blame SOURCES/0137-Use-the-default-device-tree-from-the-grub-default-fi.patch

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