Skip to content

Commit

Permalink
[TEST] initramfs-framework: Do not fail if device unlocked
Browse files Browse the repository at this point in the history
For testing purpose, the `OS_DEVELOPMENT` compilation switch will make
the device not crash when booting an unlocked device.

Signed-off-by: Alex Gonzalez <[email protected]>
  • Loading branch information
alexgg committed Jun 28, 2024
1 parent 19d7cb3 commit dfe9bb2
Showing 1 changed file with 3 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -20,8 +20,10 @@ do_install:append() {

install -m 0755 ${WORKDIR}/cryptsetup-rpi ${D}/init.d/72-cryptsetup
sed -i -e "s/@@BALENA_NONENC_BOOT_LABEL@@/${BALENA_NONENC_BOOT_LABEL}/g" ${D}/init.d/72-cryptsetup

install -m 0755 ${WORKDIR}/kexec_pi4_fwgpio ${D}/init.d/73-kexec_pi4_fwgpio
if ${@bb.utils.contains('DISTRO_FEATURES','osdev-image','true','false',d)}; then
sed -i -e "s/fail/warn/g" ${D}/init.d/72-cryptsetup
fi
}

RDEPENDS:initramfs-module-cryptsetup:append = " os-helpers-otp gnupg"

0 comments on commit dfe9bb2

Please sign in to comment.