代码拉取完成,页面将自动刷新
同步操作将从 src-anolis-os/anaconda 强制同步,此操作会覆盖自 Fork 仓库以来所做的任何修改,且无法恢复!!!
确定后同步将在后台操作,完成时将刷新页面,请耐心等待。
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
此处可能存在不合适展示的内容,页面不予展示。您可通过相关编辑功能自查并修改。
如您确认内容无涉及 不当用语 / 纯广告导流 / 暴力 / 低俗色情 / 侵权 / 盗版 / 虚假 / 无价值内容或违法国家有关法律法规的内容,可点击提交进行申诉,我们将尽快为您处理。