]> code.ossystems Code Review - openembedded-core.git/commitdiff
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)
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

index ffffe4763800ae9ec508149c4b9f4495c38fe55a..8ca53d24d7bb2ed98da351566153068bc07b04c3 100644 (file)
@@ -1,2 +1,2 @@
-search.file /EFI/BOOT/grub.cfg root
+search.file ($cmdpath)/EFI/BOOT/grub.cfg root
 set prefix=($root)/EFI/BOOT