Skip to content

Commit ecaaddf

Browse files
committed
fix(installer): use platform.machine() for target architecture in grub-install
Signed-off-by: Zhou Qiankang <wszqkzqk@qq.com>
1 parent f837387 commit ecaaddf

1 file changed

Lines changed: 2 additions & 1 deletion

File tree

archinstall/lib/installer.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
import glob
22
import os
3+
import platform
34
import re
45
import shlex
56
import shutil
@@ -1186,7 +1187,7 @@ def _add_grub_bootloader(
11861187
boot_dir = boot_partition.mountpoint
11871188

11881189
add_options = [
1189-
'--target=x86_64-efi',
1190+
f'--target={platform.machine()}-elf',
11901191
f'--efi-directory={efi_partition.mountpoint}',
11911192
*boot_dir_arg,
11921193
'--bootloader-id=GRUB',

0 commit comments

Comments
 (0)