summaryrefslogtreecommitdiffstats
path: root/meta/classes/grub-efi.bbclass
diff options
context:
space:
mode:
Diffstat (limited to 'meta/classes/grub-efi.bbclass')
-rw-r--r--meta/classes/grub-efi.bbclass8
1 files changed, 8 insertions, 0 deletions
diff --git a/meta/classes/grub-efi.bbclass b/meta/classes/grub-efi.bbclass
index c6f5d4e246..c21babb293 100644
--- a/meta/classes/grub-efi.bbclass
+++ b/meta/classes/grub-efi.bbclass
@@ -41,6 +41,14 @@ grubefi_populate() {
41 41
42grubefi_iso_populate() { 42grubefi_iso_populate() {
43 grubefi_populate ${ISODIR} 43 grubefi_populate ${ISODIR}
44 # Build a EFI directory to create efi.img
45 mkdir -p ${EFIIMGDIR}/${EFIDIR}
46 cp ${ISODIR}/${EFIDIR}/* ${EFIIMGDIR}${EFIDIR}
47 cp ${ISODIR}/vmlinuz ${EFIIMGDIR}
48 echo "EFI\\BOOT\\${GRUB_IMAGE}" > ${EFIIMGDIR}/startup.nsh
49 if [ -f "${ISODIR}/initrd" ] ; then
50 cp ${ISODIR}/initrd ${EFIIMGDIR}
51 fi
44} 52}
45 53
46grubefi_hddimg_populate() { 54grubefi_hddimg_populate() {