Openembedded Core Discussions
 help / color / mirror / Atom feed
* [PATCH] poky: daisy: grub: add cmdpath to grub configuration file
@ 2014-10-17 14:08 Drew Moseley
  2014-10-20 14:30 ` Burton, Ross
  2014-10-22 21:26 ` Darren Hart
  0 siblings, 2 replies; 4+ messages in thread
From: Drew Moseley @ 2014-10-17 14:08 UTC (permalink / raw)
  To: openembedded-core; +Cc: arindam.nath, Ravikiran_Polepalli

From: Arindam Nath <arindam.nath@amd.com>

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>
---
 meta/recipes-bsp/grub/files/cfg | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/meta/recipes-bsp/grub/files/cfg b/meta/recipes-bsp/grub/files/cfg
index ffffe47..8ca53d2 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
-- 
1.9.1



^ permalink raw reply related	[flat|nested] 4+ messages in thread

* Re: [PATCH] poky: daisy: grub: add cmdpath to grub configuration file
  2014-10-17 14:08 [PATCH] poky: daisy: grub: add cmdpath to grub configuration file Drew Moseley
@ 2014-10-20 14:30 ` Burton, Ross
  2014-10-20 14:47   ` Moseley, Drew
  2014-10-22 21:26 ` Darren Hart
  1 sibling, 1 reply; 4+ messages in thread
From: Burton, Ross @ 2014-10-20 14:30 UTC (permalink / raw)
  To: Drew Moseley; +Cc: arindam.nath, Ravikiran_Polepalli, OE-core

On 17 October 2014 15:08, Drew Moseley <drew_moseley@mentor.com> wrote:
> 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.

Presumably this needs to go to master too?

Ross


^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: [PATCH] poky: daisy: grub: add cmdpath to grub configuration file
  2014-10-20 14:30 ` Burton, Ross
@ 2014-10-20 14:47   ` Moseley, Drew
  0 siblings, 0 replies; 4+ messages in thread
From: Moseley, Drew @ 2014-10-20 14:47 UTC (permalink / raw)
  To: Burton, Ross; +Cc: Arindam Nath, Polepalli, Ravikiran, OE-core

On Oct 20, 2014, at 10:30 AM, Burton, Ross <ross.burton@intel.com> wrote:
> On 17 October 2014 15:08, Drew Moseley <drew_moseley@mentor.com> wrote:
>> 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.
> 
> Presumably this needs to go to master too?
> 
> Ross

Yes, that would be best.  I guess the original subject was a bit misleading.  Apologies for that.  The intent is mainly to get this into master and, if possible, dizzy.  Getting it into daisy would be nice but I'm not sure it's a critical enough fix for that.

Thanks,
Drew

^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: [PATCH] poky: daisy: grub: add cmdpath to grub configuration file
  2014-10-17 14:08 [PATCH] poky: daisy: grub: add cmdpath to grub configuration file Drew Moseley
  2014-10-20 14:30 ` Burton, Ross
@ 2014-10-22 21:26 ` Darren Hart
  1 sibling, 0 replies; 4+ messages in thread
From: Darren Hart @ 2014-10-22 21:26 UTC (permalink / raw)
  To: Drew Moseley, openembedded-core; +Cc: arindam.nath, Ravikiran_Polepalli



On 10/17/14 7:08, Drew Moseley wrote:
> From: Arindam Nath <arindam.nath@amd.com>
> 
> 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>

This looks appropriate to me, and solves a problem I've heard echo'd
elsewhere. Thanks!

Acked-by: Darren Hart <dvhart@linux.intel.com>


> ---
>  meta/recipes-bsp/grub/files/cfg | 2 +-
>  1 file changed, 1 insertion(+), 1 deletion(-)
> 
> diff --git a/meta/recipes-bsp/grub/files/cfg b/meta/recipes-bsp/grub/files/cfg
> index ffffe47..8ca53d2 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
> 

-- 
Darren Hart
Intel Open Source Technology Center


^ permalink raw reply	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2014-10-22 21:26 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2014-10-17 14:08 [PATCH] poky: daisy: grub: add cmdpath to grub configuration file Drew Moseley
2014-10-20 14:30 ` Burton, Ross
2014-10-20 14:47   ` Moseley, Drew
2014-10-22 21:26 ` Darren Hart

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox