pengutronix / genimage

tool to generate multiple filesystem and flash images from a tree
GNU General Public License v2.0
298 stars 107 forks source link

image-android-sparse: Fix #224: truncated image generated #225

Closed niziak closed 6 months ago

niziak commented 10 months ago

When source image file ends with empty (sparse) area, this area is skipped and incomplete sparse file is generated.

michaelolbrich commented 10 months ago

So I tried to test this and it failed in some cases. This breaks images that are not a multiple of the block size. I've fixed it and extended the tests here: https://github.com/michaelolbrich/genimage/commits/android-sparse-fix

Can you please add the two commits to the pull request so we can merge it together?

michaelolbrich commented 6 months ago

I've merged the commits together in a separate MR.