|
|
4fe85b |
From 0000000000000000000000000000000000000000 Mon Sep 17 00:00:00 2001
|
|
|
4fe85b |
From: Peter Jones <pjones@redhat.com>
|
|
|
4fe85b |
Date: Thu, 25 Aug 2016 14:15:29 -0400
|
|
|
4fe85b |
Subject: [PATCH] Export grub-get-kernel-settings variables
|
|
|
4fe85b |
|
|
|
4fe85b |
Without this export, the generators for various configs never get the
|
|
|
4fe85b |
setting.
|
|
|
4fe85b |
|
|
|
4fe85b |
Related: rhbz#1226325
|
|
|
4fe85b |
|
|
|
4fe85b |
Signed-off-by: Peter Jones <example@example.com>
|
|
|
4fe85b |
---
|
|
|
4fe85b |
util/grub-get-kernel-settings.in | 3 +++
|
|
|
4fe85b |
util/grub.d/10_linux.in | 6 +++---
|
|
|
4fe85b |
2 files changed, 6 insertions(+), 3 deletions(-)
|
|
|
4fe85b |
|
|
|
4fe85b |
diff --git a/util/grub-get-kernel-settings.in b/util/grub-get-kernel-settings.in
|
|
|
4fe85b |
index 6a68a0ef664..12046219878 100644
|
|
|
4fe85b |
--- a/util/grub-get-kernel-settings.in
|
|
|
4fe85b |
+++ b/util/grub-get-kernel-settings.in
|
|
|
4fe85b |
@@ -70,6 +70,9 @@ fi
|
|
|
4fe85b |
|
|
|
4fe85b |
if [ "$MAKEDEBUG" = "yes" ]; then
|
|
|
4fe85b |
echo GRUB_LINUX_MAKE_DEBUG=true
|
|
|
4fe85b |
+ echo export GRUB_LINUX_MAKE_DEBUG
|
|
|
4fe85b |
echo GRUB_CMDLINE_LINUX_DEBUG=\"systemd.log_level=debug systemd.log_target=kmsg\"
|
|
|
4fe85b |
+ echo export GRUB_CMDLINE_LINUX_DEBUG
|
|
|
4fe85b |
echo GRUB_LINUX_DEBUG_TITLE_POSTFIX=\" with debugging\"
|
|
|
4fe85b |
+ echo export GRUB_LINUX_DEBUG_TITLE_POSTFIX
|
|
|
4fe85b |
fi
|
|
|
4fe85b |
diff --git a/util/grub.d/10_linux.in b/util/grub.d/10_linux.in
|
|
|
4fe85b |
index 0d0086d3b6a..bf0fb727bcd 100644
|
|
|
4fe85b |
--- a/util/grub.d/10_linux.in
|
|
|
4fe85b |
+++ b/util/grub.d/10_linux.in
|
|
|
4fe85b |
@@ -127,13 +127,13 @@ linux_entry ()
|
|
|
4fe85b |
quoted="$(echo "$GRUB_ACTUAL_DEFAULT" | grub_quote)"
|
|
|
4fe85b |
title_correction_code="${title_correction_code}if [ \"x\$default\" = '$quoted' ]; then default='$(echo "$replacement_title" | grub_quote)'; fi;"
|
|
|
4fe85b |
fi
|
|
|
4fe85b |
+ if [ x$isdebug = xdebug ]; then
|
|
|
4fe85b |
+ title="$title${GRUB_LINUX_DEBUG_TITLE_POSTFIX}"
|
|
|
4fe85b |
+ fi
|
|
|
4fe85b |
echo "menuentry '$(echo "$title" | grub_quote)' ${CLASS} \$menuentry_id_option 'gnulinux-$version-$type-$boot_device_id' {" | sed "s/^/$submenu_indentation/"
|
|
|
4fe85b |
else
|
|
|
4fe85b |
echo "menuentry '$(echo "$os" | grub_quote)' ${CLASS} \$menuentry_id_option 'gnulinux-simple-$boot_device_id' {" | sed "s/^/$submenu_indentation/"
|
|
|
4fe85b |
fi
|
|
|
4fe85b |
- if [ x$isdebug = xdebug ]; then
|
|
|
4fe85b |
- title="$title${GRUB_LINUX_DEBUG_TITLE_POSTFIX}"
|
|
|
4fe85b |
- fi
|
|
|
4fe85b |
if [ x$type != xrecovery ] ; then
|
|
|
4fe85b |
save_default_entry | grub_add_tab
|
|
|
4fe85b |
fi
|