mirror of
https://github.com/Telecominfraproject/OpenCellular.git
synced 2025-11-24 02:05:01 +00:00
Fix script to use new key=value style /bin/verity arguments
BUG=chromium-os:17953
TEST=Run sign_official_build.sh verify from the chroot on an image, now
it succeeds.
Change-Id: Idd923716c95f4f12bd0a1236e2894af276e26d71
Reviewed-on: http://gerrit.chromium.org/gerrit/4499
Reviewed-by: Elly Jones <ellyjones@chromium.org>
Tested-by: Gaurav Shah <gauravsh@chromium.org>
This commit is contained in:
@@ -118,12 +118,11 @@ calculate_rootfs_hash() {
|
||||
local verity_algorithm=$(echo ${dm_config} | cut -f8 -d' ')
|
||||
|
||||
# Run the verity tool on the rootfs partition.
|
||||
local table="vroot none ro,"$(sudo verity create \
|
||||
${verity_depth} \
|
||||
${verity_algorithm} \
|
||||
${rootfs_image} \
|
||||
$((rootfs_sectors / 8)) \
|
||||
${hash_image})
|
||||
local table="vroot none ro,"$(sudo verity mode=create \
|
||||
alg=${verity_algorithm} \
|
||||
payload="${rootfs_image}" \
|
||||
payload_blocks=$((rootfs_sectors / 8)) \
|
||||
hashtree="${hash_image}")
|
||||
# Reconstruct new kernel config command line and replace placeholders.
|
||||
table="$(echo "$table" |
|
||||
sed -s "s|ROOT_DEV|${root_dev}|g;s|HASH_DEV|${hash_dev}|")"
|
||||
|
||||
Reference in New Issue
Block a user