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 <[email protected]>
  • Loading branch information
alexgg committed Jun 28, 2024
1 parent dfe9bb2 commit c88da74
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 c88da74

Please sign in to comment.