From 5af2d2bb07172e6961a2b3d29dca899127ddaad0 Mon Sep 17 00:00:00 2001 From: wszqkzqk Date: Wed, 2 Apr 2025 16:29:34 +0800 Subject: [PATCH] fix(installer): use platform.machine() for target architecture in grub-install (#3320) Signed-off-by: Zhou Qiankang --- archinstall/lib/installer.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/archinstall/lib/installer.py b/archinstall/lib/installer.py index 75f16c64..c4887a28 100644 --- a/archinstall/lib/installer.py +++ b/archinstall/lib/installer.py @@ -1,5 +1,6 @@ import glob import os +import platform import re import shlex import shutil @@ -1186,7 +1187,7 @@ class Installer: boot_dir = boot_partition.mountpoint add_options = [ - '--target=x86_64-efi', + f'--target={platform.machine()}-efi', f'--efi-directory={efi_partition.mountpoint}', *boot_dir_arg, '--bootloader-id=GRUB',