1 Star 0 Fork 23

wangkaiyuan/anaconda

forked from src-anolis-os/anaconda 
加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
文件
该仓库未声明开源许可证文件(LICENSE),使用请关注具体项目描述及其代码上游依赖。
克隆/下载
0001-add-BOOTLOONGARCH64.EFI-for-anaconda-to-support-new-firmware.patch 1.30 KB
一键复制 编辑 原始数据 按行查看 历史
From 32ce8b0208a1685a8780d0c8a87b42c15708178a Mon Sep 17 00:00:00 2001
From: Wenlong Zhang <zhangwenlong@loongson.cn>
Date: Wed, 3 Aug 2022 10:46:13 +0800
Subject: [PATCH] add BOOTLOONGARCH64.EFI for anaconda to support new firmware
---
pyanaconda/modules/storage/bootloader/efi.py | 5 +++++
1 file changed, 5 insertions(+)
diff --git a/pyanaconda/modules/storage/bootloader/efi.py b/pyanaconda/modules/storage/bootloader/efi.py
index d83ed2e..6a12e5e 100644
--- a/pyanaconda/modules/storage/bootloader/efi.py
+++ b/pyanaconda/modules/storage/bootloader/efi.py
@@ -188,6 +188,11 @@ class LOONGARCHEFIGRUB(EFIGRUB):
raise BootLoaderError("Failed to set new efi boot target. This is most "
"likely a kernel or firmware bug.")
+ rc = util.execInSysroot("cp", ["-a", "/boot/efi/EFI/anolis/" + self._efi_binary, "/boot/efi/EFI/BOOT/" + "BOOTLOONGARCH64.EFI"])
+ if rc:
+ raise BootLoaderError("Failed to set new efi boot target for new BIOS. This is most "
+ "likely a kernel or firmware bug.")
+
def add_efi_boot_target(self):
if self.stage1_device.type == "partition": # pylint: disable=no-member
self._add_single_efi_boot_target(self.stage1_device) # pylint: disable=no-member
--
2.27.0
Loading...
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化
1
https://gitee.com/wangkaiyuan01/anaconda.git
git@gitee.com:wangkaiyuan01/anaconda.git
wangkaiyuan01
anaconda
anaconda
a8

搜索帮助