加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
文件
该仓库未声明开源许可证文件(LICENSE),使用请关注具体项目描述及其代码上游依赖。
克隆/下载
0239-grub-get-kernel-settings-expose-some-more-config-var.patch 1.10 KB
一键复制 编辑 原始数据 按行查看 历史
张彬琛 提交于 2021-04-21 13:03 . update to grub2-2.02-87.el8_2.3.src.rpm
From 0000000000000000000000000000000000000000 Mon Sep 17 00:00:00 2001
From: Peter Jones <pjones@redhat.com>
Date: Thu, 11 Oct 2018 15:31:04 -0400
Subject: [PATCH] grub-get-kernel-settings: expose some more config variables
This exposes MAKEDEFAULT as GRUB_UPDATE_DEFAULT_KERNEL and DEFAULTDEBUG as
GRUB_DEFAULT_TO_DEBUG
Related: rhbz#1638117
Signed-off-by: Peter Jones <pjones@redhat.com>
---
util/grub-get-kernel-settings.in | 10 ++++++++++
1 file changed, 10 insertions(+)
diff --git a/util/grub-get-kernel-settings.in b/util/grub-get-kernel-settings.in
index 12046219878..7e87dfccc0e 100644
--- a/util/grub-get-kernel-settings.in
+++ b/util/grub-get-kernel-settings.in
@@ -76,3 +76,13 @@ if [ "$MAKEDEBUG" = "yes" ]; then
echo GRUB_LINUX_DEBUG_TITLE_POSTFIX=\" with debugging\"
echo export GRUB_LINUX_DEBUG_TITLE_POSTFIX
fi
+if [ "$DEFAULTDEBUG" = "yes" ]; then
+ echo GRUB_DEFAULT_TO_DEBUG=true
+else
+ echo GRUB_DEFAULT_TO_DEBUG=false
+fi
+echo export GRUB_DEFAULT_TO_DEBUG
+if [ "$UPDATEDEFAULT" = "yes" ]; then
+ echo GRUB_UPDATE_DEFAULT_KERNEL=true
+ echo export GRUB_UPDATE_DEFAULT_KERNEL
+fi
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化