dcavalca / rpms / grub2

Forked from rpms/grub2 3 years ago
Clone

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

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