librenms / packer-builds

This repo is where virtual images are created and stored
MIT License
73 stars 20 forks source link

Move zeroing of disk space to end of disk build #28

Closed candlerb closed 3 years ago

candlerb commented 3 years ago

The step which zeros out unused disk space currently happens quite early:

This patch moves it to the end of minimize.sh, so that disk space freed by apt-get -y autoremove --purge etc actually shrinks the image.

(For simplicity this was applied on top of #27, but I can rebase if required) Now rebased