1 Star 0 Fork 16

Sevever/grub2_oc

forked from OpenCloudOS Stream/grub2 
加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
文件
该仓库未声明开源许可证文件(LICENSE),使用请关注具体项目描述及其代码上游依赖。
克隆/下载
0063-grub-mkcofnig-default-entry-correction.patch 942 Bytes
一键复制 编辑 原始数据 按行查看 历史
nilusyi 提交于 2024-04-07 16:45 . update patches
From b23f0e130f4250679ec132332cd3c3d7ee1dfead Mon Sep 17 00:00:00 2001
From: nilusyi <[email protected]>
Date: Mon, 1 Apr 2024 17:50:41 +0800
Subject: [PATCH 063/272] grub mkcofnig default entry correction
Signed-off-by: Michael Chang <[email protected]>
---
util/grub-mkconfig.in | 5 +++++
1 file changed, 5 insertions(+)
diff --git a/util/grub-mkconfig.in b/util/grub-mkconfig.in
index a1f17678d..01b469c1e 100644
--- a/util/grub-mkconfig.in
+++ b/util/grub-mkconfig.in
@@ -362,6 +362,11 @@ and /etc/grub.d/* files or please file a bug report with
cat ${grub_cfg}.new > ${grub_cfg}
umask $oldumask
rm -f ${grub_cfg}.new
+ # check if default entry need to be corrected for updated distributor version
+ # and/or use fallback entry if default kernel entry removed
+ if test -x /usr/sbin/grub2-check-default; then
+ /usr/sbin/grub2-check-default >&2
+ fi
sync_fs_journal || true
fi
fi
--
2.41.0
Loading...
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化
1
https://gitee.com/sevever/grub2_oc.git
[email protected]:sevever/grub2_oc.git
sevever
grub2_oc
grub2_oc
master

搜索帮助