grub.cfg: Enable arm64 ACPI

Add a new grub variable extra_options, the contents of which is
added to the linux command line.  Use extra_options to set
the ACPI options needed for arm64.

Signed-off-by: Geoff Levand <geoff@infradead.org>
This commit is contained in:
Geoff Levand 2016-12-01 10:09:51 -08:00
parent f5345de53e
commit acd0566352

View File

@ -96,6 +96,11 @@ if [ -z "$linux_console" ]; then
fi
fi
set extra_options=""
if [ "$grub_cpu" = arm64 ]; then
set extra_options="acpi=force"
fi
set suf=""
# UEFI uses linuxefi/initrdefi instead of linux/initrd except for arm64
@ -106,7 +111,7 @@ if [ "$grub_platform" = efi ]; then
fi
# Assemble the options applicable to all the kernels below
set linux_cmdline="rootflags=rw mount.usrflags=ro consoleblank=0 $linux_root $linux_console $first_boot $oem $linux_append"
set linux_cmdline="rootflags=rw mount.usrflags=ro consoleblank=0 $linux_root $linux_console $first_boot $extra_options $oem $linux_append"
# Re-implement grub_abort() since no command exposes it.
function abort {