From a74424850379e2cd2e19b437a3f0e60aae374958 Mon Sep 17 00:00:00 2001 From: William Wilson Date: Mon, 14 Mar 2022 22:49:52 +0000 Subject: [PATCH] Add riscv64 to supported UEFI architectures As we prepare a RISC-V installer image, we need to add 'riscv64' to the supported UEFI architectures. This commit does so by setting values for grub_name and grub_target. --- curtin/commands/install_grub.py | 3 +++ 1 file changed, 3 insertions(+) diff --git a/curtin/commands/install_grub.py b/curtin/commands/install_grub.py index ba46bd2a..74ffdf13 100644 --- a/curtin/commands/install_grub.py +++ b/curtin/commands/install_grub.py @@ -62,6 +62,9 @@ def get_grub_package_name(target_arch, uefi, rhel_ver=None): elif target_arch == 'i386': grub_name = 'grub-efi-ia32' grub_target = 'i386-efi' + elif target_arch == 'riscv64': + grub_name = 'grub-efi-riscv64' + grub_target = 'riscv64-efi' else: raise ValueError('Unsupported UEFI arch: %s' % target_arch) else: