diff --git a/1002-add-riscv64-support-for-lorax.patch b/1002-add-riscv64-support-for-lorax.patch new file mode 100644 index 0000000000000000000000000000000000000000..3cfab41540bc1fe0b5f63cf47e4c9525138816ca --- /dev/null +++ b/1002-add-riscv64-support-for-lorax.patch @@ -0,0 +1,28 @@ +diff -ruN a/src/pylorax/installer.py b/src/pylorax/installer.py +--- a/src/pylorax/installer.py 2023-10-03 03:10:36.000000000 +0800 ++++ b/src/pylorax/installer.py 2025-06-15 15:57:19.861227343 +0800 +@@ -167,6 +167,13 @@ + "arches": ["ppc64le"], + "machine": "pseries", + }, ++ "riscv64": { ++ "cmd": "qemu-system-riscv64", ++ "arches": ["riscv64"], ++ "machine": "virt", ++ "uefi": ["riscv/RISCV_VIRT_CODE.qcow2", "riscv/RISCV_VIRT_VARS.qcow2"], ++ "uefi_machine": "virt", ++ }, + } + + def __init__(self, opts, iso, ks_paths, disk_img, img_size=2048, +diff -ruN a/src/pylorax/treebuilder.py b/src/pylorax/treebuilder.py +--- a/src/pylorax/treebuilder.py 2025-06-15 15:54:50.875891835 +0800 ++++ b/src/pylorax/treebuilder.py 2025-06-15 15:57:57.175480390 +0800 +@@ -40,6 +40,7 @@ + 's390x': 's390.tmpl', + 'aarch64': 'aarch64.tmpl', + 'loongarch64': 'loongarch64.tmpl', ++ 'riscv64': 'riscv64.tmpl', + } + + def generate_module_info(moddir, outfile=None): diff --git a/lorax.spec b/lorax.spec index 6eef37b02a8e7c401aeed6c44f430a103e58b99b..32f32f6d51b8f771b39b2fa0ce8eaf7fa44082e9 100644 --- a/lorax.spec +++ b/lorax.spec @@ -1,4 +1,4 @@ -%define anolis_release 5 +%define anolis_release 6 # NOTE: This specfile is generated from upstream at https://github.com/rhinstaller/lorax # NOTE: Please submit changes as a pull request %define debug_package %{nil} @@ -13,6 +13,7 @@ URL: https://github.com/weldr/lorax Source0: https://github.com/weldr/lorax/archive/refs/tags/%{name}-%{version}-1.tar.gz Patch001: 0001-add-loongarch64-support-for-lorax.patch Patch1001: 1001-Adapt-new-version-util-linux.patch +Patch1002: 1002-add-riscv64-support-for-lorax.patch BuildRequires: python3-devel BuildRequires: make @@ -161,6 +162,9 @@ make DESTDIR=$RPM_BUILD_ROOT mandir=%{_mandir} install %{_datadir}/lorax/templates.d/* %changelog +* Fri Jun 13 2025 Yihao Yan - 40.0-6 +- add riscv64 support for lorax + * Thu Mar 28 2024 Chang Gao - 40.0-5 - Adapt with new version util-linux