From d496407fc10fb87259d145968706b79ab19490a7 Mon Sep 17 00:00:00 2001 From: richard Date: Tue, 4 Feb 2020 09:01:22 +0000 Subject: modified grub-efi-efi-secure-boot.inc to install also the grub configuration files in the DEPLOYDIR --- .../recipes-bsp/grub/grub-efi-efi-secure-boot.inc | 13 +++++++++++++ 1 file changed, 13 insertions(+) diff --git a/meta-efi-secure-boot/recipes-bsp/grub/grub-efi-efi-secure-boot.inc b/meta-efi-secure-boot/recipes-bsp/grub/grub-efi-efi-secure-boot.inc index 56ba863..f172e08 100644 --- a/meta-efi-secure-boot/recipes-bsp/grub/grub-efi-efi-secure-boot.inc +++ b/meta-efi-secure-boot/recipes-bsp/grub/grub-efi-efi-secure-boot.inc @@ -181,6 +181,19 @@ addtask chownboot after do_deploy before do_package do_deploy_append_class-target() { install -m 0644 "${D}${EFI_BOOT_PATH}/${GRUB_IMAGE}" "${DEPLOYDIR}" + # Deploy the stacked grub configs. + install -m 0600 "${D}${EFI_BOOT_PATH}/grubenv" "${DEPLOYDIR}" + install -m 0600 "${D}${EFI_BOOT_PATH}/grub.cfg" "${DEPLOYDIR}" + install -m 0600 "${D}${EFI_BOOT_PATH}/boot-menu.inc" "${DEPLOYDIR}" + install -m 0600 "${D}${EFI_BOOT_PATH}/grub.cfg${SB_FILE_EXT}" "${DEPLOYDIR}" + install -m 0600 "${D}${EFI_BOOT_PATH}/boot-menu.inc${SB_FILE_EXT}" "${DEPLOYDIR}" + [ x"${UEFI_SB}" = x"1" ] && { + install -m 0600 "${D}${EFI_BOOT_PATH}/efi-secure-boot.inc" "${DEPLOYDIR}" + install -m 0600 "${D}${EFI_BOOT_PATH}/password.inc" "${DEPLOYDIR}" + install -m 0600 "${D}${EFI_BOOT_PATH}/efi-secure-boot.inc${SB_FILE_EXT}" "${DEPLOYDIR}" + install -m 0600 "${D}${EFI_BOOT_PATH}/password.inc${SB_FILE_EXT}" "${DEPLOYDIR}" + } + install -d "${DEPLOYDIR}/efi-unsigned" install -m 0644 "${B}/${GRUB_IMAGE}" "${DEPLOYDIR}/efi-unsigned" cp -af "${D}${EFI_BOOT_PATH}/${GRUB_TARGET}-efi" "${DEPLOYDIR}/efi-unsigned" -- cgit v1.2.3-54-g00ecf