grub-efi: support custom embedded grub configs
PATCH 1/1 grub-efi: support custom embedded grub configs
Adds support for including custom embedded grub configs. The default one provided in OE-core is limited to everything being in the /EFI/BOOT directory.
Some users may want their modules
and configs in /boot/grub instead.
--- meta/recipes-bsp/grub/grub-efi_2.14.bb | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-)
meta/recipes-bsp/grub/grub-efi_2.14.bb +2 -1
@@ -48,6 +48,7 @@ EXTRA_OECONF += "--enable-efiemu=no" # Define GRUB_MKIMAGE_OPTS variable for additional grub-mkimage options (e.g., disabling shim lock) GRUB_MKIMAGE_OPTS ?= "" +EMBEDDED_GRUB_CONFIG ?= "${UNPACKDIR}/cfg" do_mkimage() { cd ${B}
@@ -63,7 +64,7 @@ do_mkimage() { # Search for the grub.cfg on the local boot media by using the # built in cfg file provided via this recipe - grub-mkimage -v -c ${UNPACKDIR}/cfg -p ${EFIDIR} -d ./grub-core/ \ + grub-mkimage -v -c ${EMBEDDED_GRUB_CONFIG} -p ${EFIDIR} -d ./grub-core/ \ -O ${GRUB_TARGET}-efi -o ./${GRUB_IMAGE_PREFIX}${GRUB_IMAGE} \ ${GRUB_MKIMAGE_OPTS} ${GRUB_MKIMAGE_MODULES} }
Signature · 1 line
2.43.0
Quoted 5 lines · Vincent Davis Jr via lists.openembedded.org
Adds support for including custom embedded grub configs. The default one provided in OE-core is limited to everything being in the /EFI/BOOT directory.
The cfg file is in SRC_URI, so you can do this with a simple bbappend to provide a replacement cfg file without any changes to the recipe.
Ross
O yeah!!
We can drop this patch.
Don't know what I was thinking here.
Vincent
Quoted 12 lines · Ross Burton
Quoted 5 lines · Vincent Davis Jr via lists.openembedded.org
Adds support for including custom embedded grub configs. The default one provided in OE-core is limited to everything being in the /EFI/BOOT directory.
The cfg file is in
SRC_URI, so you can do this with a simple bbappend to provide a replacement cfg file without any changes to the recipe.Ross