title: how to implement dm-verity support for a squashfs file system?
body: <p>I'm building support for linux kernal in a new chip from a company called maxliner, and i want to implement dm-verity support for that chip.i have built a new image file with 3 partitions 1. a boot partition (vfat) 2.root partition (squashfs) 3.a dummy partition to store the hash value (ext4).</p>
  <p>Now to implement the dm-verity i took the sha256 value of the root partition. then how to setup the dm-verity?.</p>
  <p>do i have to enable any configuration during the kernal build to use dm-verity if,so what are they?</p>
  <p>I use qemu to run my build, if i load my kernal image and disk.img to qemu do i have to use any special software to use dmsetup, as i cannot run run dmsetup from my shell.(image is added for clarification)</p>
  <p>qemu after booting the system in qemu</p>
  <p><img src="https://i.stack.imgur.com/n3Lr5.png" alt="1" /></p>