1 Star 0 Fork 98

余诗/grub2

forked from src-openEuler/grub2 
加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
该仓库未声明开源许可证文件(LICENSE),使用请关注具体项目描述及其代码上游依赖。
克隆/下载
grub2-ppc64le-fix-bug-about-petitboot-doesn-t-ignore-EFI-entries.patch 850 Bytes
一键复制 编辑 原始数据 按行查看 历史
From 801733fd3971ee681146f9eb6381cbaf78c3d4c4 Mon Sep 17 00:00:00 2001
From: peng_zou <[email protected]>
Date: Mon, 15 Jul 2024 14:45:16 +0800
Subject: [PATCH] fix bug about petitboot doesn't ignore EFI entries for
ppc64le
---
util/grub.d/95_textmode.in | 5 +++--
1 file changed, 3 insertions(+), 2 deletions(-)
diff --git a/util/grub.d/95_textmode.in b/util/grub.d/95_textmode.in
index d6c1dbf..9171f95 100644
--- a/util/grub.d/95_textmode.in
+++ b/util/grub.d/95_textmode.in
@@ -1,12 +1,13 @@
#!/bin/sh
cat <<EOF
-if [ "\${grub_platform}" = "efi" ]; then
+if [ -d /sys/firmware/efi ]; then
+ echo "
# On EFI systems we can only have graphics *or* serial, so allow the user
# to switch between the two
hiddenentry 'Text mode' --hotkey 't' {
set textmode=true
terminal_output console
- }
+ }"
fi
EOF
--
2.43.0
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化
1
https://gitee.com/yushi-Icy/grub2.git
[email protected]:yushi-Icy/grub2.git
yushi-Icy
grub2
grub2
master

搜索帮助