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:
Brandon Philips 2013-07-02 16:15:23 -07:00
parent 3b9ff1ea62
commit d85bf2432a

View File

@ -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}