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