From 517abe0ea9fbb1766009b1645079b8b83156dc02 Mon Sep 17 00:00:00 2001 From: Pascal Vizeli Date: Wed, 29 Apr 2020 14:49:32 +0200 Subject: [PATCH] Check keyring of ota update file (#645) --- buildroot-external/scripts/ota.sh | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/buildroot-external/scripts/ota.sh b/buildroot-external/scripts/ota.sh index f53cfe632..3e95801ae 100755 --- a/buildroot-external/scripts/ota.sh +++ b/buildroot-external/scripts/ota.sh @@ -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}" }