mirror of
https://github.com/elasticdog/packer-arch.git
synced 2026-07-18 00:45:20 +00:00
11 lines
289 B
Bash
Executable file
11 lines
289 B
Bash
Executable file
#!/usr/bin/bash -x
|
|
|
|
# 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)
|
|
/usr/bin/dd if=/dev/zero of="$zerofile" bs=1M
|
|
/usr/bin/rm -f "$zerofile"
|
|
/usr/bin/sync
|