Revert "grub-install: Check for arm-efi as a default target"
This reverts commit 082fd84d52
.
Incorrect version of the patch was pushed into the git repo.
Reported-by: Leif Lindholm <leif.lindholm@linaro.org>
Signed-off-by: Daniel Kiper <daniel.kiper@oracle.com>
This commit is contained in:
parent
7f6cfc5f40
commit
718b3fb1dc
4 changed files with 1 additions and 32 deletions
|
@ -97,28 +97,6 @@ read_platform_size (void)
|
|||
return ret;
|
||||
}
|
||||
|
||||
const char *
|
||||
grub_install_get_default_arm_platform (void)
|
||||
{
|
||||
/*
|
||||
* On Linux, we need the efivars kernel modules. If no EFI is available this
|
||||
* module just does nothing besides a small hello and if we detect efi we'll
|
||||
* load it anyway later. So it should be safe to try to load it here.
|
||||
*/
|
||||
grub_util_exec_redirect_all ((const char * []){ "modprobe", "efivars", NULL },
|
||||
NULL, NULL, "/dev/null");
|
||||
|
||||
grub_util_info ("Looking for /sys/firmware/efi ..");
|
||||
if (is_not_empty_directory ("/sys/firmware/efi"))
|
||||
{
|
||||
grub_util_info ("...found");
|
||||
return "arm-efi";
|
||||
}
|
||||
|
||||
grub_util_info ("... not found");
|
||||
return "arm-uboot";
|
||||
}
|
||||
|
||||
const char *
|
||||
grub_install_get_default_x86_platform (void)
|
||||
{
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue