mirror of
https://github.com/openembedded/meta-openembedded.git
synced 2026-10-15 18:27:12 +00:00
Writing an image whose size is not a multiple of the bmap block size failed at its last block with "Image ended before the block map did", because every range was taken to end at (endBlock + 1) * BlockSize. Add a patch that reads ImageSize from the bmap and clamps the ranges to it. Tested by writing a wic image whose size ends 2048 bytes into its last 4 KiB block to an NVMe disk. AI-Generated: Uses Claude Code (Claude Fable 5.1) Signed-off-by: Markus Volk <f_l_k@t-online.de> Signed-off-by: Khem Raj <khem.raj@oss.qualcomm.com>