Commit graph

7 commits

Author SHA1 Message Date
Christian Kotte
c1125dc9b8 Add variable/option to control if zeros are written to the disk
It takes some time to write zeros to the disk and it aborts later if
less than 20GB are available.

Add variable to the template, cleanup script and add a new option to
wrapacker.
2020-08-13 15:53:08 -07:00
Christian Kotte
090a1cb9a6 Improve script output
The '==>' prefix is used by pacstrap, pacman, and mkinitcpio. A new
prefix is needed to better differentiate the output of the script from
the output of the programs mentioned above.
Also adding more output to the different steps helps during troubleshooting.
2020-08-13 15:53:08 -07:00
Mike Appleby
2a522c91c4 Don't call pacman-optimize in cleanup.sh
The pacman-optimize script has been removed from pacman.

https://git.archlinux.org/pacman.git/commit/?id=d590a45795b30a14cdb697754749c85907053570

This was causing the installer to complain "/usr/bin/pacman-optimize:
No such file or directory".
2018-10-30 16:28:00 -06:00
Aaron Bull Schaefer
f00a3026f4 Optimize the pacman database before zeroing the drive 2016-02-11 09:08:28 -08:00
Aaron Bull Schaefer
6c589e733a Remove the conditional on cleanup.sh
This should be desireable to run on any of the builders.
2016-02-11 08:00:09 -08:00
Mike Appleby
004b694ef6 Set the execute bit on cleanup.sh.
This isn't strictly necessary.  Done for consistency with the other
files in ./scripts.
2016-02-10 13:49:42 -06:00
Mike Appleby
fd57a360b7 Add a cleanup script.
Do a final clean of the pacman cache, then write zeros to disk and
unlink the file.  Packer will compact the disk as part of the build,
resulting in a smaller final image.
2016-02-09 20:53:33 -06:00