Bug 15580

Summary: dm-verity checking fails when both dm-verity and sparse image are enabled
Product: [Build System, Metadata & Runtime] OE-Core Reporter: Marcin Bajer <marcin.bajer>
Component: coreAssignee: Unassigned <unassigned>
Status: RESOLVED INVALID QA Contact:
Severity: normal    
Priority: Undecided CC: meta.mr.watcher, meta.watcher, randy.macleod
Version: unspecified   
Target Milestone: 0.0.0   
Hardware: x86   
OS: Multiple   
Whiteboard:
OS type for building Yocto: --- Type of Regression: ---
Verified: Documentation change: No (bug/feature does not impact docs)

Description Marcin Bajer 2024-08-20 13:00:41 UTC
Seems dm-verity checking fails while using sparse format image. I think the problem is a commit:

https://git.openembedded.org/meta-openembedded/commit/meta-oe/classes/image_types_sparse.bbclass?h=master-next&id=9862a017fa7f88424f0670ba89af58e5051550b0

which in my opinion changes the content of ext4 image included in the wic file. Without `-s` option in `img2simg` call the image works wihtout any errors
Comment 1 Randy MacLeod 2024-08-22 14:36:31 UTC
dm-verity is part of meta-openembedded and those bugs aren't handling in this bugzilla. Please send an email or patch to the meta-oe list.