balena-os / meta-balena

A collection of Yocto layers used to build balenaOS images
https://www.balena.io/os
968 stars 115 forks source link

init: always run cryptsetup hook with secure boot #3485

Closed jakogut closed 2 months ago

jakogut commented 2 months ago

Init hooks specify an *_enabled function that determines whether or not the hook is skipped during boot. Hooks are run by the "init" script, shipped as part of the initramfs-framework poky recipe.

Several conditions were checked in the cryptsetup-efi-tpm enablement function, some of which could cause the hook to be improperly skipped.

Force the hook to run when in secure boot user mode, as we want any failure in the hook's run function to be detected and abort the boot.

Change-type: patch


Contributor checklist

Reviewer Guidelines

github-actions[bot] commented 2 months ago

Website deployed to CF Pages, 👀 preview link https://1b897eb9.balena-os.pages.dev