We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
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.
-s
img2simg
As I see without -s image size is much bigger, but still smaller than without sparse formation.
sparse
Is there a way to keep sparse format and use dm-verity?
dm-verity
The text was updated successfully, but these errors were encountered:
you can propose a patch to make the -s argument configurable and disable the arg for dm-verity, something like:
SPARSE_BLOCK_SIZE ??= "4096" +SPARSE_IMG2SIMG_ARGS ??= "-s" CONVERSIONTYPES += "sparse" CONVERSION_CMD:sparse() { INPUT="${IMAGE_NAME}${IMAGE_NAME_SUFFIX}.${type}" truncate --no-create --size=%${SPARSE_BLOCK_SIZE} "$INPUT" - img2simg -s "$INPUT" "$INPUT.sparse" ${SPARSE_BLOCK_SIZE} + img2simg ${SPARSE_IMG2SIMG_ARGS} "$INPUT" "$INPUT.sparse" ${SPARSE_BLOCK_SIZE} } CONVERSION_DEPENDS_sparse = "android-tools-native"
Sorry, something went wrong.
Sounds reasonable for me. For sure it will help with my problem.
No branches or pull requests
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 inimg2simg
call the image works wihtout any errors.As I see without
-s
image size is much bigger, but still smaller than withoutsparse
formation.Is there a way to keep
sparse
format and usedm-verity
?The text was updated successfully, but these errors were encountered: