Skip to content

Commit

Permalink
kernel-balena: Only sign initramfs for EFI machines
Browse files Browse the repository at this point in the history
UEFI firmware in secure boot needs to authenticate the kernel plus
initramfs in the chain of trust. Other firmware implements secure boot
differently and does not need this.

Change-type: patch
Signed-off-by: Alex Gonzalez <alexg@balena.io>
  • Loading branch information
alexgg committed Jan 12, 2024
1 parent c491f7d commit 5e56bc8
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion meta-balena-common/classes/kernel-balena.bbclass
Original file line number Diff line number Diff line change
Expand Up @@ -1064,7 +1064,7 @@ do_configure[vardeps] += " \

# Because we chain signatures here, the signed artifact is different for each
# and defined in :prepend for each task
SIGNING_ARTIFACTS_BASE = "${B}/${KERNEL_OUTPUT_DIR}/${KERNEL_IMAGETYPE}.initramfs"
SIGNING_ARTIFACTS_BASE = "${@bb.utils.contains('MACHINE_FEATURES', 'efi', "${B}/${KERNEL_OUTPUT_DIR}/${KERNEL_IMAGETYPE}.initramfs", '', d)}"
addtask sign_efi before do_deploy after do_bundle_initramfs
addtask sign_gpg before do_deploy after do_sign_efi

Expand Down

0 comments on commit 5e56bc8

Please sign in to comment.