From c2064cd37a33a1238bb3f1ec6bf2a89228543871 Mon Sep 17 00:00:00 2001 From: eabdullin Date: Mon, 1 Sep 2025 13:05:59 +0300 Subject: [PATCH 2/2] Add riscv64 support --- src/pylorax/installer.py | 7 +++++++ src/pylorax/treebuilder.py | 1 + 2 files changed, 8 insertions(+) diff --git a/src/pylorax/installer.py b/src/pylorax/installer.py index 7fe6795..308349e 100644 --- a/src/pylorax/installer.py +++ b/src/pylorax/installer.py @@ -161,6 +161,13 @@ class QEMUInstall(object): "arches": ["s390x"], "machine": "s390-ccw-virtio" }, + "riscv64": { + "cmd": "/usr/libexec/qemu-kvm", + "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 --git a/src/pylorax/treebuilder.py b/src/pylorax/treebuilder.py index 47f8747..40be1f9 100644 --- a/src/pylorax/treebuilder.py +++ b/src/pylorax/treebuilder.py @@ -37,6 +37,7 @@ from pylorax.executils import runcmd, runcmd_output, execWithCapture templatemap = { 'x86_64': 'x86.tmpl', 'x86_64_v2': 'x86_v2.tmpl', + 'riscv64': 'riscv64.tmpl', 'ppc64le': 'ppc64le.tmpl', 's390x': 's390.tmpl', 'aarch64': 'aarch64.tmpl', -- 2.39.5 (Apple Git-154)