Modern Apps git

← MAOS.git

maos: predefine empty key passphrase so release decrypt-keys runs non-interactively

Commit
e289a857ca3230272f1302208e0a86be0fd3c032
Author
Vayun Mathur <[email protected]>
When
2026-08-11 00:53 UTC (3 months ago)
Parents
9ba307e

Diff

build-maos.sh
diff --git a/build-maos.sh b/build-maos.shindex 953128f..3ec6c86 100755--- a/build-maos.sh+++ b/build-maos.sh@@ -319,6 +319,13 @@ phase_release() {     log "Signing + generating factory image and full OTA"     cd "$TREE"; source build/envsetup.sh     unlock_keys+    # GrapheneOS's script/decrypt-keys (invoked by generate-release.sh) prompts for the+    # passphrase the per-key .pk8/avb.pem are encrypted with. build-maos.sh keeps the individual+    # keys UNENCRYPTED inside the scrypt blob (already unlocked into RAM by unlock_keys above),+    # so that passphrase is empty. Predefine it so decrypt-keys runs non-interactively and takes+    # the plaintext path instead of trying to decrypt an already-plaintext key (which fails with+    # an openssl "asn1 ... wrong tag / X509_SIG" error).+    export password=""     m otatools-package     script/finalize.sh     script/generate-release.sh "$DEVICE" "$BUILD"