加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
文件
该仓库未声明开源许可证文件(LICENSE),使用请关注具体项目描述及其代码上游依赖。
克隆/下载
0242-don-t-set-saved_entry-on-grub2-mkconfig.patch 1.51 KB
一键复制 编辑 原始数据 按行查看 历史
geliwei 提交于 2022-04-13 15:15 . update to grub2-2.02-120.el8.src.rpm
From 0000000000000000000000000000000000000000 Mon Sep 17 00:00:00 2001
From: Javier Martinez Canillas <javierm@redhat.com>
Date: Fri, 19 Oct 2018 14:42:41 +0200
Subject: [PATCH] don't set saved_entry on grub2-mkconfig
The original plan was for grub2 to rely on the BLS sort criteria to choose
the default entry to boot, to avoid modifying any files when a new kernel
was installed. But that was changed and now 20-grub.install changes the
default, so 10_linux{,bls} shouldn't overwrite this.
Resolves: rhbz#1636466
Signed-off-by: Javier Martinez Canillas <javierm@redhat.com>
---
util/grub.d/10_linux.in | 1 -
util/grub.d/10_linux_bls.in | 1 -
2 files changed, 2 deletions(-)
diff --git a/util/grub.d/10_linux.in b/util/grub.d/10_linux.in
index 01e66e5fc..b54d2774a 100644
--- a/util/grub.d/10_linux.in
+++ b/util/grub.d/10_linux.in
@@ -165,7 +165,6 @@ if [ -s \$prefix/grubenv ]; then
fi
EOF
- ${grub_editenv} - set saved_entry=0
if ! grub2-editenv - list | grep -q kernelopts; then
${grub_editenv} - set kernelopts="root=${linux_root_device_thisversion} ro ${args}"
fi
diff --git a/util/grub.d/10_linux_bls.in b/util/grub.d/10_linux_bls.in
index 1bc97f298..8745e598d 100644
--- a/util/grub.d/10_linux_bls.in
+++ b/util/grub.d/10_linux_bls.in
@@ -212,7 +212,6 @@ linux_entry ()
populate_header_warn
populate_menu
- ${grub_editenv} - set saved_entry=0
if ! grub2-editenv - list | grep -q kernelopts; then
${grub_editenv} - set kernelopts="root=${linux_root_device_thisversion} ro ${args}"
fi
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化