packer-plugin-arm-image icon indicating copy to clipboard operation
packer-plugin-arm-image copied to clipboard

add support for zerofree the partitions

Open rgl opened this issue 6 years ago • 0 comments

it would be nice to be able to call zerofree on the rootfs device before detaching the loop device.

doing that makes the img more compressible when we do a apt-get dist-upgrade while provision the image.

for example, after zerofree the image manually, the zip file went from 826306919 to 509377581 bytes.

BTW, this is also done on the upstream raspbian images.

rgl avatar Dec 29 '19 19:12 rgl