mirror of
https://github.com/flatcar/scripts.git
synced 2026-01-20 07:51:44 +01:00
signing/sign.sh: fix armoring
We use gpg --enarmor to convert the torcx manifest binary sigs to ascii armored ones. Unfortunately --enarmor just wraps the binary blob without realizing its a signature, which breaks torcx. Pipe the output through sed to fix the header.
This commit is contained in:
parent
e1634c48ea
commit
1d17d34314
@ -56,7 +56,10 @@ fero-client \
|
||||
--secret-key coreos-torcx \
|
||||
${torcx_signature_arg}
|
||||
gpg2 --enarmor \
|
||||
--output "${DATA_DIR}/torcx_manifest.json.asc" \
|
||||
"${DATA_DIR}/torcx_manifest.json.sig-fero"
|
||||
--output - \
|
||||
"${DATA_DIR}/torcx_manifest.json.sig-fero" \
|
||||
| sed 's/ARMORED FILE/SIGNATURE/' \
|
||||
> "${DATA_DIR}/torcx_manifest.json.asc"
|
||||
|
||||
echo "=== Torcx manifest signed successfully. ==="
|
||||
rm -f "${DATA_DIR}/torcx_manifest.json.sig-fero"
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user