LAKITU:Signing_script: Fix the bug in getting the hashstart value.
echo statement in hashstart case is missing in get_verity_arg which is
causing the verity tool to return wrong payload blocks and number of
sectors. When these numbers are used to recalculate the hash when
auto-update happens, it fails with hash mismatch.
BUG=b/240174341
TEST=presubmit,validation,auto-update test.
RELEASE_NOTE=None
BRANCH=None
Signed-off-by: Meena Shanmugam <meenashanmugam@google.com>
Change-Id: Ia05821f8c982b3d9ebcffd691f61095fcbd0a13c
Reviewed-on: https://cos-review.googlesource.com/c/third_party/platform/vboot_reference/+/37987
Reviewed-by: Arnav Kansal <rnv@google.com>
Reviewed-by: Vaibhav Rustagi <vaibhavrustagi@google.com>
Tested-by: Cusky Presubmit Bot <presubmit@cos-infra-prod.iam.gserviceaccount.com>
diff --git a/scripts/image_signing/sign_official_cos_build.sh b/scripts/image_signing/sign_official_cos_build.sh
index ec1a146..5aa49ad 100755
--- a/scripts/image_signing/sign_official_cos_build.sh
+++ b/scripts/image_signing/sign_official_cos_build.sh
@@ -130,6 +130,7 @@
hashstart)
hashstart=$(echo "${verity_arg}" | awk '{print $10}')
hashstart=$(($hashstart<<3))
+ echo "${hashstart}"
;;
alg)
echo "${verity_arg}" | awk '{print $11}'