From c88da742a3adabd8e695456f56d3b587be4fdeba Mon Sep 17 00:00:00 2001 From: Alex Gonzalez Date: Mon, 3 Jun 2024 17:44:19 +0200 Subject: [PATCH] [TEST] os-helpers: do not check for RSA digest in OTP This allows to test with unlocked devices Signed-off-by: Alex Gonzalez --- .../recipes-support/os-helpers/os-helpers/os-helpers-sb | 8 -------- 1 file changed, 8 deletions(-) diff --git a/layers/meta-balena-raspberrypi/recipes-support/os-helpers/os-helpers/os-helpers-sb b/layers/meta-balena-raspberrypi/recipes-support/os-helpers/os-helpers/os-helpers-sb index 763fd2db4..fda19d01a 100644 --- a/layers/meta-balena-raspberrypi/recipes-support/os-helpers/os-helpers/os-helpers-sb +++ b/layers/meta-balena-raspberrypi/recipes-support/os-helpers/os-helpers/os-helpers-sb @@ -37,15 +37,7 @@ BALENA_NONENCRYPTED_BOOT_PARTITION_FILES="\ is_secured() { # Check the private key has been programmed if [ -n "$(otp_read_key | sed s/0//g)" ]; then - # Check that the RSA digest has been programmed - # Skip on balena bootloader that has no VHCI access - if grep -q "balena_stage2" < /proc/cmdline; then return 0 - else - if otp_has_rsa_digest; then - return 0 - fi - fi fi return 1 }