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

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