grub/grub-core/kern/efi
Michael Chang 562c406763 Fix fwpath in efi netboot
The path returned by grub_efi_net_config has already been stripped for the
directory part extracted from cached bootp packet. We should just return the
result to avoild it be stripped again.

It fixed the problem that grub.efi as NBP image always looking for grub.cfg and
platform directory in upper folder rather than current one it gets loaded while
$prefix is empty. The behavior is inconsistent with other architecture and how
we would expect empty $prefix going to be in general.

The only exception to the general rule of empty $prefix is that when loaded
from platform directory itself, the platform part is stripped thus upper folder
is used for looking up files. It meets the case for how grub-mknetdir lay out
the files under tftp root directory, but also hide away this issue to be
identified as it appears to be just works.

Also fix possible memory leak by moving grub_efi_get_filename() call after
grub_efi_net_config().
2016-12-22 22:37:32 +03:00
..
acpi.c tsc: Use alternative delay sources whenever appropriate. 2015-11-27 11:39:55 +01:00
efi.c efi: fix GetVariable return status check in 81ca24a 2015-07-24 20:46:02 +03:00
fdt.c efi: Move fdt helper into own file 2016-11-24 10:09:24 +01:00
init.c Fix fwpath in efi netboot 2016-12-22 22:37:32 +03:00
mm.c * grub-core/kern/efi/mm.c (grub_efi_get_memory_map): Never return a 2015-01-21 17:42:15 +01:00