Skip to content

Commit

Permalink
balena-image: only add grub configuration for EFI machines
Browse files Browse the repository at this point in the history
Only EFI systems need grub configuration added to the boot partition -
other device types that also use the signing API do not.

Change-type: patch
Signed-off-by: Alex Gonzalez <alexg@balena.io>
  • Loading branch information
alexgg committed Jan 12, 2024
1 parent d4e8094 commit 25be7ad
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion meta-balena-common/recipes-core/images/balena-image.bb
Original file line number Diff line number Diff line change
Expand Up @@ -71,7 +71,7 @@ BALENA_BOOT_PARTITION_FILES:append = " \
BALENA_BOOT_PARTITION_FILES:append = "${@oe.utils.conditional('SIGN_API','','','balena-keys:/balena-keys/',d)}"

# add the LUKS variant of GRUB config if needed
BALENA_BOOT_PARTITION_FILES:append = "${@oe.utils.conditional('SIGN_API','','',' grub.cfg_internal_luks:/EFI/BOOT/grub-luks.cfg',d)}"
BALENA_BOOT_PARTITION_FILES:append = "${@bb.utils.contains('MACHINE_FEATURES','efi',' grub.cfg_internal_luks:/EFI/BOOT/grub-luks.cfg','',d)}"

# add the generated <machine-name>.json to the resin-boot partition, renamed as device-type.json
BALENA_BOOT_PARTITION_FILES:append = " ${BALENA_COREBASE}/../../../${MACHINE}.json:/device-type.json"
Expand Down

0 comments on commit 25be7ad

Please sign in to comment.