From 5e7a430a557353bc02aee26686e064ec3a31faa5 Mon Sep 17 00:00:00 2001 From: Elly Jones Date: Fri, 27 May 2011 16:08:16 -0400 Subject: [PATCH] build_kernel_image: use key-value args for verity. BUG=chromium-os:15772 TEST=Adhoc Ran build_image. Change-Id: I1a745076dfb0242e76f65c5e24d72a1119f29008 Signed-off-by: Elly Jones Reviewed-on: http://gerrit.chromium.org/gerrit/1740 --- build_kernel_image.sh | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/build_kernel_image.sh b/build_kernel_image.sh index 5305e47084..dc6ab07abc 100755 --- a/build_kernel_image.sh +++ b/build_kernel_image.sh @@ -100,11 +100,11 @@ if [[ -n "${FLAGS_rootfs_image}" && -n "${FLAGS_rootfs_hash}" ]]; then info "Generating root fs hash tree." # Runs as sudo in case the image is a block device. # First argument to verity is reserved/unused and MUST be 0 - table=$(sudo verity create 0 \ - ${FLAGS_verity_hash_alg} \ - ${FLAGS_rootfs_image} \ - ${root_fs_blocks} \ - ${FLAGS_rootfs_hash}) + table=$(sudo verity mode=create \ + alg=${FLAGS_verity_hash_alg} \ + payload=${FLAGS_rootfs_image} \ + payload_blocks=${root_fs_blocks} \ + hashtree=${FLAGS_rootfs_hash}) if [[ -f "${FLAGS_rootfs_hash}" ]]; then sudo chmod a+r "${FLAGS_rootfs_hash}" fi