From 1cd901cfa2821b1440179936db2582aa11f6debe Mon Sep 17 00:00:00 2001 From: Thore Sommer Date: Mon, 19 Jul 2021 11:50:22 +0200 Subject: Enable dm-verity support also for ext filesystems Those need a block size of 4k to work. --- scripts/build/binary_dm-verity | 13 ++++++++----- 1 file changed, 8 insertions(+), 5 deletions(-) (limited to 'scripts/build/binary_dm-verity') diff --git a/scripts/build/binary_dm-verity b/scripts/build/binary_dm-verity index fb33c7a5f..c9d899c42 100755 --- a/scripts/build/binary_dm-verity +++ b/scripts/build/binary_dm-verity @@ -28,11 +28,14 @@ fi Echo_message "Begin creating dm-verity hash for rootfs" -if [ "${LB_CHROOT_FILESYSTEM}" != "squashfs" ] -then - Echo_error "dm-verity support is only implemented for squashfs" - exit 1 -fi +case ${LB_CHROOT_FILESYSTEM} in + squashfs|ext2|ext3|ext4) + ;; + *) + Echo_error "dm-verity support is not implemented for ${LB_CHROOT_FILESYSTEM}!" + exit 1 + ;; +esac case "${LB_INITRAMFS}" in -- cgit v1.2.3