1 Star 0 Fork 23

庞庆/anaconda_4

forked from src-anolis-os/anaconda 
加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
该仓库未声明开源许可证文件(LICENSE),使用请关注具体项目描述及其代码上游依赖。
克隆/下载
0013-anaconda-anolis-modify-the-path-of-execInSysroot.patch 1.92 KB
一键复制 编辑 原始数据 按行查看 历史
From 65e9a6e480b01f6a7fe465fdbf528d3f97579810 Mon Sep 17 00:00:00 2001
From: yangxiaoxuan <yangxiaoxuan@openanolis.org>
Date: Wed, 15 Sep 2021 16:01:37 +0800
Subject: [PATCH] anaconda anolis modify the path of execInSysroot
---
pyanaconda/modules/storage/bootloader/efi.py | 2 +-
tests/nosetests/pyanaconda_tests/product_test.py | 5 +++++
2 files changed, 6 insertions(+), 1 deletion(-)
diff --git a/pyanaconda/modules/storage/bootloader/efi.py b/pyanaconda/modules/storage/bootloader/efi.py
index 0b2ec2a..6418c56 100644
--- a/pyanaconda/modules/storage/bootloader/efi.py
+++ b/pyanaconda/modules/storage/bootloader/efi.py
@@ -184,7 +184,7 @@ class LOONGARCHEFIGRUB(EFIGRUB):
boot_disk = partition.disk
boot_part_num = str(partition.parted_partition.number)
- rc = util.execInSysroot("cp", ["-a", "/boot/efi/EFI/centos/" + self._efi_binary, "/boot/efi/EFI/BOOT/" + "BOOTLOONGARCH.EFI"])
+ rc = util.execInSysroot("cp", ["-a", "/boot/efi/EFI/anolis/" + self._efi_binary, "/boot/efi/EFI/BOOT/" + "BOOTLOONGARCH.EFI"])
if rc:
raise BootLoaderError("Failed to set new efi boot target. This is most "
"likely a kernel or firmware bug.")
diff --git a/tests/nosetests/pyanaconda_tests/product_test.py b/tests/nosetests/pyanaconda_tests/product_test.py
index 55f3e0d..48dc0d9 100644
--- a/tests/nosetests/pyanaconda_tests/product_test.py
+++ b/tests/nosetests/pyanaconda_tests/product_test.py
@@ -244,6 +244,11 @@ class ProductConfigurationTestCase(unittest.TestCase):
["rhel.conf", "centos-stream.conf", "centos.conf"],
WORKSTATION_PARTITIONING
)
+ self._check_default_product(
+ "Anolis",
+ ["rhel.conf", "anolis.conf"]
+ )
+ WORKSTATION_PARTITIONING
self._check_default_product(
"Red Hat Virtualization", "",
["rhel.conf", "rhev.conf"],
--
2.18.4
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化
1
https://gitee.com/pang-qing/anaconda_4.git
git@gitee.com:pang-qing/anaconda_4.git
pang-qing
anaconda_4
anaconda_4
a8

搜索帮助

23e8dbc6 1850385 7e0993f3 1850385