Feedback on dm-verity integration under secure boot with Yocto
summary
Practical feedback on integrating dm-verity with Yocto: use the verity tools (notably veritysetup format and veritysetup open) to build a SHA-256 Merkle tree and sign the single root hash, place a fixed header before the filesystem and the hash tree after it, and automate image creation with a script (create_verity_device) that supports offline signing. Integration keeps boot cost minimal by verifying only the root hash, checks blocks at access time, supports sys.ro.verity partitions, and offers panic/reboot/error and optional forward error correction.
AI-written summary · about
chapters (13)
- 0:00Introduction and context
- 1:53Secure boot basics
- 6:22Why secure file systems
- 8:52DM-Verity introduction
- 10:38Merkle tree explained
- 14:10Yocto integration steps
- 17:21Verity setup in Yocto
- 20:26System startup verification
- 23:01Chain of trust completion
- 24:25x86 UEFI implementation
- 25:29DM-Verity benefits and risks
- 27:33Wrap-up and Embedded Kit
- 28:16Q&A session
