Great, it looks like some Linux kernel upgrade broke system image builds locally...
Cyril Brulebois @CyrilBrulebois@mamot.fr
Great, it looks like some Linux kernel upgrade broke system image builds locally, but I'm unable to reproduce with a minimal use case…
That involves a regular file, partitions, kpartx, mount, debootstrap (and many more packages), unmounting cleanly, virt-sparsify. After that, everything *looks* clean, but using kpartx on another random file brings back the size and partition layout of the first file, as confirmed by lsblk/blkid.
It looks like /dev/loop0 wasn't cleaned up properly.