Merge "bootloader: fix arm64 install path"
This commit is contained in:
commit
6b3af23854
@ -95,10 +95,13 @@ GRUB_OPTS="--force "
|
||||
# * the boot images are placed in /usr/lib/grub/<cpu>-<platform>
|
||||
# * i386-pc is used for BIOS-based machines
|
||||
# http://www.gnu.org/software/grub/manual/grub.html#Installation
|
||||
#
|
||||
if [[ -d /sys/firmware/efi && ! -d /usr/lib/grub/*-efi ]]; then
|
||||
# * this check is only valid for x86_64; other platforms we support
|
||||
# are either not EFI (ppc) or always EFI (arm64)
|
||||
if [[ "x86_64 amd64" =~ ${ARCH} ]]; then
|
||||
if [[ -d /sys/firmware/efi && ! -d /usr/lib/grub/x86_64-efi ]]; then
|
||||
GRUB_OPTS="$GRUB_OPTS --target=i386-pc"
|
||||
fi
|
||||
fi
|
||||
|
||||
if [[ "$ARCH" =~ "ppc" ]] ; then
|
||||
# For PPC (64-Bit regardless of Endian-ness), we use the "boot"
|
||||
|
Loading…
Reference in New Issue
Block a user