]> code.ossystems Code Review - openembedded-core.git/commit
grub: add cmdpath to grub configuration file
authorArindam Nath <arindam.nath@amd.com>
Fri, 17 Oct 2014 14:08:08 +0000 (10:08 -0400)
committerRichard Purdie <richard.purdie@linuxfoundation.org>
Fri, 24 Oct 2014 16:31:57 +0000 (17:31 +0100)
commit5ce73b6055ac5a47906e2e661bc5163604f5cec9
treec99bb4ae1976ef38294af1bb441a6d9bc1165df6
parent5d3a4f4f57e4d8581fd88a14324f94e93104a690
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>
meta/recipes-bsp/grub/files/cfg