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

Unified Diff: scripts/image_signing/make_dev_ssd.sh

Issue 6799007: vboot_reference: allow using recovery_key in make_dev_ssd. (Closed) Base URL: ssh://gitrw.chromium.org:9222/vboot_reference.git@master
Patch Set: Created 9 years, 8 months 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/make_dev_ssd.sh
diff --git a/scripts/image_signing/make_dev_ssd.sh b/scripts/image_signing/make_dev_ssd.sh
index df9bff7910202d0962411f2531b8f7cb706d36c4..a9f36a0fc26e0fdd6b00bd4043eb1614a5ccd5e1 100755
--- a/scripts/image_signing/make_dev_ssd.sh
+++ b/scripts/image_signing/make_dev_ssd.sh
@@ -30,6 +30,8 @@ DEFINE_string set_config "" \
"Base filename to load kernel configs from" ""
DEFINE_string partitions "$DEFAULT_PARTITIONS" \
"List of partitions to examine" ""
+DEFINE_boolean recovery_key "$FLAGS_FALSE" \
+ "Use recovery key to sign image (to boot from USB" ""
# Parse command line
FLAGS "$@" || exit 1
@@ -255,9 +257,15 @@ main() {
local num_signed=0
local num_given=$(echo "$FLAGS_partitions" | wc -w)
# Check parameters
- KERNEL_KEYBLOCK="$FLAGS_keys/kernel.keyblock"
- KERNEL_DATAKEY="$FLAGS_keys/kernel_data_key.vbprivk"
- KERNEL_PUBKEY="$FLAGS_keys/kernel_subkey.vbpubk"
+ if [ "$FLAGS_recovery_key" = "$FLAGS_TRUE" ]; then
+ KERNEL_KEYBLOCK="$FLAGS_keys/recovery_kernel.keyblock"
+ KERNEL_DATAKEY="$FLAGS_keys/recovery_kernel_data_key.vbprivk"
+ KERNEL_PUBKEY="$FLAGS_keys/recovery_key.vbpubk"
+ else
+ KERNEL_KEYBLOCK="$FLAGS_keys/kernel.keyblock"
+ KERNEL_DATAKEY="$FLAGS_keys/kernel_data_key.vbprivk"
+ KERNEL_PUBKEY="$FLAGS_keys/kernel_subkey.vbpubk"
+ fi
debug_msg "Prerequisite check"
ensure_files_exist \
« 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