mirror of
https://github.com/flatcar/scripts.git
synced 2025-09-22 22:21:10 +02:00
feat(core_upload_update): insert the public key
shove the public key into the image so it can be found by update_engine
This commit is contained in:
parent
3b9ff1ea62
commit
d85bf2432a
@ -42,6 +42,9 @@ switch_to_strict_mode
|
||||
[[ -z "${FLAGS_private_key}" ]] && die "--private_key is required"
|
||||
[[ -z "${FLAGS_public_key}" ]] && die "--public_key is required"
|
||||
|
||||
# Put our public key in a place that update_engine can find it
|
||||
${SRC_ROOT}/platform/vboot_reference/scripts/image_signing/insert_au_publickey.sh ${FLAGS_image} ${FLAGS_public_key}
|
||||
|
||||
# Generate a payload and sign it with our private key
|
||||
cros_generate_update_payload --image ${FLAGS_image} --output /tmp/update.gz \
|
||||
--private_key ${FLAGS_private_key}
|
||||
|
Loading…
x
Reference in New Issue
Block a user