Apply option --ignore-corruption to veritysetup for debugging 90/272290/2 accepted/tizen/unified/20220315.132322 submit/tizen/20220314.073710
authorSangYoun Kwak <sy.kwak@samsung.com>
Mon, 14 Mar 2022 06:54:24 +0000 (15:54 +0900)
committerSangYoun Kwak <sy.kwak@samsung.com>
Mon, 14 Mar 2022 07:23:53 +0000 (16:23 +0900)
Change-Id: Icbfb216faf98a31067abebab1dba46d28fcbc24d
Signed-off-by: SangYoun Kwak <sy.kwak@samsung.com>
scripts/verityctl

index 8ac60044f7f8728f40b2539e32809f3117d118bf..c6243e7548c5ed68992570ae84c0686588e90d4d 100755 (executable)
@@ -163,7 +163,7 @@ create()
                        # replace dmsetup to veritysetup
                        # veritysetup reads super block to retrieve parameters:
                        #       data block size, hash block size, number of data block, hashing algorithm, salt
-                       /sbin/veritysetup --hash-offset=$hash_offset --ignore-zero-blocks open $ROOTFS $NAME $ROOTFS $root_hash
+                       /sbin/veritysetup --hash-offset=$hash_offset open $ROOTFS $NAME $ROOTFS $root_hash --ignore-zero-blocks --ignore-corruption
 
                        mount /dev/mapper/$NAME "$MOUNT_POINT"
                        exit 1