Check keyring of ota update file (#645)

This commit is contained in:
Pascal Vizeli 2020-04-29 14:49:32 +02:00 committed by GitHub
parent ca90fa515d
commit 517abe0ea9
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -10,6 +10,7 @@ function create_ota_update() {
local spl="${BINARIES_DIR}/spl.img"
local key="/build/key.pem"
local cert="/build/cert.pem"
local keyring="${TARGET_DIR}/etc/rauc/keyring.pem"
# Skip if no dev key is arround
if [ ! -f "${key}" ]; then
@ -51,5 +52,5 @@ function create_ota_update() {
) >> "${rauc_folder}/manifest.raucm"
fi
rauc bundle -d --cert="${cert}" --key="${key}" "${rauc_folder}" "${ota_file}"
rauc bundle -d --cert="${cert}" --key="${key}" --keyring="${keyring}" "${rauc_folder}" "${ota_file}"
}