mirror of
https://github.com/elasticdog/packer-arch.git
synced 2026-01-23 10:15:21 +00:00
Optimize the pacman database before zeroing the drive
This commit is contained in:
parent
6c589e733a
commit
f00a3026f4
1 changed files with 1 additions and 0 deletions
|
|
@ -2,6 +2,7 @@
|
|||
|
||||
# Clean the pacman cache.
|
||||
/usr/bin/yes | /usr/bin/pacman -Scc
|
||||
/usr/bin/pacman-optimize
|
||||
|
||||
# Write zeros to improve virtual disk compaction.
|
||||
zerofile=$(/usr/bin/mktemp /zerofile.XXXXX)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue