mirror of
https://github.com/parchlinux/calamares.git
synced 2025-06-28 09:55:37 -04:00
Merge pull request #1733 from CC2130/aarch64-support
[bootloader] add support for aarch64
This commit is contained in:
commit
d068371e62
1 changed files with 12 additions and 3 deletions
|
@ -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…
Add table
Add a link
Reference in a new issue