]> code.ossystems Code Review - openembedded-core.git/commitdiff
grub-efi: Allow to use file name different from grub.cfg in GRUBCFG
authorNicolas Guyomard <nicolas.guyomard@open.eurogiciel.org>
Thu, 18 Jun 2015 07:43:04 +0000 (09:43 +0200)
committerRichard Purdie <richard.purdie@linuxfoundation.org>
Tue, 7 Jul 2015 22:56:23 +0000 (23:56 +0100)
To generate a same image both in live image type and boot-directdisk image type
and make boot-direct image boot directly on the rootfs partition without using
an initramfs we need to have the ability to generate several grub.cfg files.

Signed-off-by: Nicolas Guyomard <nicolas.guyomard@open.eurogiciel.org>
Signed-off-by: Ross Burton <ross.burton@intel.com>
meta/classes/grub-efi.bbclass

index 47bd35e04947a644c6f6262be624b2edea425e48..6d58d48704f31d3cb0465d7deff9678275699efb 100644 (file)
@@ -39,7 +39,7 @@ efi_populate() {
        fi
        install -m 0644 ${DEPLOY_DIR_IMAGE}/${GRUB_IMAGE} ${DEST}${EFIDIR}
 
-       install -m 0644 ${GRUBCFG} ${DEST}${EFIDIR}
+       install -m 0644 ${GRUBCFG} ${DEST}${EFIDIR}/grub.cfg
 }
 
 efi_iso_populate() {