Recognize EFI platform even in case of mismatch between Linux and EFI.
authorSteve McIntyre <steve@einval.com>
Fri, 27 Mar 2015 13:51:51 +0000 (14:51 +0100)
committerVladimir Serbinenko <phcoder@gmail.com>
Fri, 27 Mar 2015 13:51:51 +0000 (14:51 +0100)
commit1a33de8b5612f8d7ab344546f8a91fa814f712b5
tree70efe3bb2c7e65311563c5a4bf84e28513a5704a
parented07b7e1289dd00b9d6dc8ac5dd56130f3376bc9
Recognize EFI platform even in case of mismatch between Linux and EFI.

Some x86 systems might be capable of running a 64-bit Linux kernel but
only use a 32-bit EFI (e.g. Intel Bay Trail systems). It's useful for
grub-install to be able to recognise such systems, to set the default
x86 platform correctly.

To allow grub-install to know the size of the firmware rather than
just the size of the kernel, there is now an extra EFI sysfs file to
describe the underlying firmware. Read that if possible, otherwise
fall back to the kernel type as before.

Signed-off-by: Steve McIntyre <steve@einval.com>
grub-core/osdep/linux/platform.c