Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(975)

Unified Diff: scripts/image_signing/sign_official_build.sh

Issue 4457001: Produce the correct vvmlinuz_hd.vblock when signing for direct USB. (Closed) Base URL: ssh://git@gitrw.chromium.org:9222/vboot_reference.git@master
Patch Set: Created 10 years, 1 month ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: scripts/image_signing/sign_official_build.sh
diff --git a/scripts/image_signing/sign_official_build.sh b/scripts/image_signing/sign_official_build.sh
index 7d86dcd70491ff10699a9eda281715d40b84a068..4fa9f2dd4ab7ab0410e24b7e89f0c129ff9b7517 100755
--- a/scripts/image_signing/sign_official_build.sh
+++ b/scripts/image_signing/sign_official_build.sh
@@ -322,6 +322,21 @@ sign_for_usb() {
${SCRIPT_DIR}/resign_image.sh ${INPUT_IMAGE} ${OUTPUT_IMAGE} \
${KEY_DIR}/recovery_kernel_data_key.vbprivk \
${KEY_DIR}/recovery_kernel.keyblock
+
+ # Now generate the installer vblock with the SSD keys.
+ # The installer vblock is for KERN-A on direct boot images.
+ temp_kimagea=$(make_temp_file)
+ temp_out_vb=$(make_temp_file)
+ extract_image_partition ${OUTPUT_IMAGE} 2 ${temp_kimagea}
+ ${SCRIPT_DIR}/resign_kernel_partition.sh ${temp_kimagea} ${temp_out_vb} \
+ ${KEY_DIR}/kernel_data_key.vbprivk \
+ ${KEY_DIR}/kernel.keyblock
+
+ # Copy the installer vblock to the stateful partition.
+ local stateful_dir=$(make_temp_dir)
+ mount_image_partition ${OUTPUT_IMAGE} 1 ${stateful_dir}
+ sudo cp ${temp_out_vb} ${stateful_dir}/vmlinuz_hd.vblock
+
echo "Signed USB image output to ${OUTPUT_IMAGE}"
}
@@ -362,8 +377,8 @@ sign_for_recovery() {
${KEY_DIR}/kernel.keyblock
# Copy the installer vblock to the stateful partition.
- # TODO(gauravsh): Remove this after we get rid of the need to overwrite
- # the vblock during installs. Kenrn B could directly be signed by the
+ # TODO(gauravsh): Remove this if we get rid of the need to overwrite
+ # the vblock during installs. Kern B could directly be signed by the
# SSD keys.
local stateful_dir=$(make_temp_dir)
mount_image_partition ${OUTPUT_IMAGE} 1 ${stateful_dir}
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698