bootloader: add-support_for_aarch64
This commit is contained in:
parent
b54b486ee8
commit
3dce393dcc
@ -24,6 +24,8 @@ import os
|
|||||||
import shutil
|
import shutil
|
||||||
import subprocess
|
import subprocess
|
||||||
|
|
||||||
|
import platform
|
||||||
|
|
||||||
import libcalamares
|
import libcalamares
|
||||||
|
|
||||||
from libcalamares.utils import check_target_env_call
|
from libcalamares.utils import check_target_env_call
|
||||||
@ -299,11 +301,18 @@ def install_grub(efi_directory, fw_type):
|
|||||||
efi_bootloader_id = efi_label()
|
efi_bootloader_id = efi_label()
|
||||||
efi_bitness = efi_word_size()
|
efi_bitness = efi_word_size()
|
||||||
|
|
||||||
|
cpu_type = platform.machine()
|
||||||
|
|
||||||
if efi_bitness == "32":
|
if efi_bitness == "32":
|
||||||
efi_target = "i386-efi"
|
efi_target = "i386-efi"
|
||||||
efi_grub_file = "grubia32.efi"
|
efi_grub_file = "grubia32.efi"
|
||||||
efi_boot_file = "bootia32.efi"
|
efi_boot_file = "bootia32.efi"
|
||||||
elif efi_bitness == "64":
|
elif efi_bitness == "64":
|
||||||
|
if cpu_type == "aarch64":
|
||||||
|
efi_target = "arm64-efi"
|
||||||
|
efi_grub_file = "grubaa64.efi"
|
||||||
|
efi_boot_file = "bootaa64.efi"
|
||||||
|
else:
|
||||||
efi_target = "x86_64-efi"
|
efi_target = "x86_64-efi"
|
||||||
efi_grub_file = "grubx64.efi"
|
efi_grub_file = "grubx64.efi"
|
||||||
efi_boot_file = "bootx64.efi"
|
efi_boot_file = "bootx64.efi"
|
||||||
|
Loading…
Reference in New Issue
Block a user