mirror of
https://github.com/flatcar/scripts.git
synced 2025-08-13 07:56:57 +02:00
updates: minor fixes for offline signing wrapper script
- Fedora provides gpg2 by default, not gpg. - The zip file's root must be the current directory.
This commit is contained in:
parent
fd88195d58
commit
f1c81df7f3
@ -1,17 +1,19 @@
|
||||
#!/bin/bash
|
||||
|
||||
set -ex
|
||||
DATA_DIR="$1"
|
||||
DATA_DIR="$(readlink -f "$1")"
|
||||
KEYS_DIR="$(readlink -f "$(dirname "$0")")"
|
||||
|
||||
gpg --verify "${DATA_DIR}/coreos_production_update.bin.bz2.sig"
|
||||
gpg --verify "${DATA_DIR}/coreos_production_update.zip.sig"
|
||||
gpg2 --verify "${DATA_DIR}/coreos_production_update.bin.bz2.sig"
|
||||
gpg2 --verify "${DATA_DIR}/coreos_production_update.zip.sig"
|
||||
bunzip2 --keep "${DATA_DIR}/coreos_production_update.bin.bz2"
|
||||
unzip "${DATA_DIR}/coreos_production_update.zip" -d "${DATA_DIR}"
|
||||
|
||||
export PATH="${DATA_DIR}:${PATH}"
|
||||
|
||||
core_sign_update \
|
||||
cd "${DATA_DIR}"
|
||||
./core_sign_update \
|
||||
--image "${DATA_DIR}/coreos_production_update.bin" \
|
||||
--output "${DATA_DIR}/update.gz" \
|
||||
--private_keys "devel.key.pem:prod-2.key.pem" \
|
||||
--public_keys "devel.pub.pem:prod-2.pub.pem"
|
||||
--output "${DATA_DIR}/coreos_production_update.gz" \
|
||||
--private_keys "${KEYS_DIR}/devel.key.pem:${KEYS_DIR}/prod-2.key.pem" \
|
||||
--public_keys "${KEYS_DIR}/devel.pub.pem:${KEYS_DIR}/prod-2.pub.pem"
|
||||
|
Loading…
Reference in New Issue
Block a user