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