kaorimatz / packer-templates

Packer templates for Vagrant base boxes
MIT License
491 stars 244 forks source link

what does the purpose of minimize script? #10

Open nivazri opened 7 years ago

nivazri commented 7 years ago

packer-templates/scripts/common/minimize.sh whats is the purpose of this script?

kaorimatz commented 7 years ago

It zeros out unused disk blocks so that those blocks can be removed from the underlying virtual disk.

ek9 commented 7 years ago

As previously explained, it removes unused space, so that the resulting image (.box file) can be better compressed. Results in smaller size .box files.

As it was answered, I suggest to close tihs.

jcrben commented 6 years ago

I recommend putting this in a comment inside the file instead.