diff options
author | Arindam Nath <arindam.nath@amd.com> | 2014-10-17 10:08:08 -0400 |
---|---|---|
committer | Richard Purdie <richard.purdie@linuxfoundation.org> | 2014-10-24 17:31:57 +0100 |
commit | 5ce73b6055ac5a47906e2e661bc5163604f5cec9 (patch) | |
tree | c99bb4ae1976ef38294af1bb441a6d9bc1165df6 | |
parent | 5d3a4f4f57e4d8581fd88a14324f94e93104a690 (diff) | |
download | openembedded-core-5ce73b6055ac5a47906e2e661bc5163604f5cec9.tar.gz openembedded-core-5ce73b6055ac5a47906e2e661bc5163604f5cec9.tar.bz2 openembedded-core-5ce73b6055ac5a47906e2e661bc5163604f5cec9.zip |
grub: add cmdpath to grub configuration file
An issue was found where when yocto is installed to a hard disk
from a live USB key, no matter what boot order was selected in
the BIOS menu, the grub menu of the USB key would always show
up. The issue was narrowed down to the way grub configuration
file gets embedded into the standalone bootx64.efi image.
The commit prepends ($cmdpath) to the search path for grub.cfg,
thus making sure the UEFI environment itself sets this to the
correct device path. This in-turn lets the grub.cfg of the boot
device to be loaded.
Signed-off-by: Arindam Nath <arindam.nath@amd.com>
Reviewed-by: Drew Moseley <drew_moseley@mentor.com>
Tested-by: Ravikiran Polepalli <Ravikiran_Polepalli@mentor.com>
Signed-off-by: Ross Burton <ross.burton@intel.com>
-rw-r--r-- | meta/recipes-bsp/grub/files/cfg | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/meta/recipes-bsp/grub/files/cfg b/meta/recipes-bsp/grub/files/cfg index ffffe47638..8ca53d24d7 100644 --- a/meta/recipes-bsp/grub/files/cfg +++ b/meta/recipes-bsp/grub/files/cfg @@ -1,2 +1,2 @@ -search.file /EFI/BOOT/grub.cfg root +search.file ($cmdpath)/EFI/BOOT/grub.cfg root set prefix=($root)/EFI/BOOT |