fix(installer): use platform.machine() for target architecture in grub-install (#3320)
Signed-off-by: Zhou Qiankang <wszqkzqk@qq.com>
This commit is contained in:
parent
ed0e9bd3c4
commit
5af2d2bb07
|
|
@ -1,5 +1,6 @@
|
||||||
import glob
|
import glob
|
||||||
import os
|
import os
|
||||||
|
import platform
|
||||||
import re
|
import re
|
||||||
import shlex
|
import shlex
|
||||||
import shutil
|
import shutil
|
||||||
|
|
@ -1186,7 +1187,7 @@ class Installer:
|
||||||
boot_dir = boot_partition.mountpoint
|
boot_dir = boot_partition.mountpoint
|
||||||
|
|
||||||
add_options = [
|
add_options = [
|
||||||
'--target=x86_64-efi',
|
f'--target={platform.machine()}-efi',
|
||||||
f'--efi-directory={efi_partition.mountpoint}',
|
f'--efi-directory={efi_partition.mountpoint}',
|
||||||
*boot_dir_arg,
|
*boot_dir_arg,
|
||||||
'--bootloader-id=GRUB',
|
'--bootloader-id=GRUB',
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue