Skip to content

Commit

Permalink
[TEST] os-helpers: do not check for RSA digest in OTP
Browse files Browse the repository at this point in the history
This allows to test with unlocked devices

Signed-off-by: Alex Gonzalez <alexg@balena.io>
  • Loading branch information
alexgg committed Jun 28, 2024
1 parent bd9df46 commit 6edf126
Showing 1 changed file with 0 additions and 8 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -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
}
Expand Down

0 comments on commit 6edf126

Please sign in to comment.