Index: verify_rootfs_chksum.sh |
diff --git a/verify_rootfs_chksum.sh b/verify_rootfs_chksum.sh |
index 7ad196d897b688f0bb383f93c84122fa56cfeabe..bfe4c3a5d6cb19e2a812d0543a0f7155a3c9c1d5 100755 |
--- a/verify_rootfs_chksum.sh |
+++ b/verify_rootfs_chksum.sh |
@@ -98,13 +98,12 @@ KERNEL_CONFIG=$(sudo "${DUMP_KERNEL_CONFIG}" "${KERNEL_IMG}") |
kernel_cfg="$(echo "${KERNEL_CONFIG}" | sed -e 's/.*dm="\([^"]*\)".*/\1/g' | |
cut -f2- -d,)" |
rootfs_sectors=$(echo ${kernel_cfg} | cut -f2 -d' ') |
-verity_depth=$(echo ${kernel_cfg} | cut -f7 -d' ') |
verity_algorithm=$(echo ${kernel_cfg} | cut -f8 -d' ') |
# Compute the rootfs hash tree |
VERITY=/bin/verity |
-table="vroot none ro,"$(sudo "${VERITY}" create \ |
- ${verity_depth} \ |
+# First argument to verity is reserved/unused and MUST be 0 |
+table="vroot none ro,"$(sudo "${VERITY}" create 0 \ |
"${verity_algorithm}" \ |
"${ROOTFS_IMG}" \ |
$((rootfs_sectors / 8)) \ |