Blame SOURCES/0239-grub-get-kernel-settings-expose-some-more-config-var.patch

8631a2
From 0000000000000000000000000000000000000000 Mon Sep 17 00:00:00 2001
8631a2
From: Peter Jones <pjones@redhat.com>
8631a2
Date: Thu, 11 Oct 2018 15:31:04 -0400
8631a2
Subject: [PATCH] grub-get-kernel-settings: expose some more config variables
8631a2
8631a2
This exposes MAKEDEFAULT as GRUB_UPDATE_DEFAULT_KERNEL and DEFAULTDEBUG as
8631a2
GRUB_DEFAULT_TO_DEBUG
8631a2
8631a2
Related: rhbz#1638117
8631a2
Signed-off-by: Peter Jones <pjones@redhat.com>
8631a2
---
8631a2
 util/grub-get-kernel-settings.in | 10 ++++++++++
8631a2
 1 file changed, 10 insertions(+)
8631a2
8631a2
diff --git a/util/grub-get-kernel-settings.in b/util/grub-get-kernel-settings.in
8631a2
index 12046219878..7e87dfccc0e 100644
8631a2
--- a/util/grub-get-kernel-settings.in
8631a2
+++ b/util/grub-get-kernel-settings.in
8631a2
@@ -76,3 +76,13 @@ if [ "$MAKEDEBUG" = "yes" ]; then
8631a2
     echo GRUB_LINUX_DEBUG_TITLE_POSTFIX=\" with debugging\"
8631a2
     echo export GRUB_LINUX_DEBUG_TITLE_POSTFIX
8631a2
 fi
8631a2
+if [ "$DEFAULTDEBUG" = "yes" ]; then
8631a2
+    echo GRUB_DEFAULT_TO_DEBUG=true
8631a2
+else
8631a2
+    echo GRUB_DEFAULT_TO_DEBUG=false
8631a2
+fi
8631a2
+echo export GRUB_DEFAULT_TO_DEBUG
8631a2
+if [ "$UPDATEDEFAULT" = "yes" ]; then
8631a2
+    echo GRUB_UPDATE_DEFAULT_KERNEL=true
8631a2
+    echo export GRUB_UPDATE_DEFAULT_KERNEL
8631a2
+fi