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