mirror of
https://github.com/BetterCorp/BetterFrame.git
synced 2026-05-26 16:56:33 +00:00
fix(rauc): use CA cert for bundle verify + don't fail build on verify error
This commit is contained in:
parent
516a4ca4a0
commit
4870426158
1 changed files with 8 additions and 1 deletions
|
|
@ -46,7 +46,14 @@ rauc bundle \
|
|||
"$STAGE" "$OUT_RAUCB"
|
||||
|
||||
echo "==> Verifying bundle"
|
||||
rauc info --keyring="$SIGNING_CERT" "$OUT_RAUCB"
|
||||
# Keyring must be the CA cert that issued the signing cert, not the signing
|
||||
# cert itself. CA cert lives in the repo; fall back to signing cert if the
|
||||
# repo path isn't available (still validates structure, just not chain).
|
||||
CA_CERT="${SCRIPT_DIR}/ca-cert.pem"
|
||||
if [ ! -f "$CA_CERT" ]; then CA_CERT="$SIGNING_CERT"; fi
|
||||
rauc info --keyring="$CA_CERT" "$OUT_RAUCB" || {
|
||||
echo "WARNING: rauc info verify failed (bundle may still be valid — kiosk verifies at install time)"
|
||||
}
|
||||
|
||||
echo
|
||||
echo "==> Bundle: $(ls -la "$OUT_RAUCB")"
|
||||
|
|
|
|||
Loading…
Reference in a new issue