index : arch-boxes32 | |
Archlinux32 virtual machines - obsolete | gitolite user |
summaryrefslogtreecommitdiff |
author | Mike Appleby <mike@app.leby.org> | 2017-08-02 11:24:50 -0500 |
---|---|---|
committer | Mike Appleby <mike@app.leby.org> | 2017-08-02 11:24:50 -0500 |
commit | f445ebb0285dd30c01449691328e7c11194be0b7 (patch) | |
tree | 61ccd56d5b16926222269e29a682074d93c7d199 | |
parent | f9206846329cc1f6b89f510698267e5dec1ef2ca (diff) |
-rwxr-xr-x[-rw-r--r--] | provision/cleanup.sh | 6 |
diff --git a/provision/cleanup.sh b/provision/cleanup.sh index b8a2336..29da429 100644..100755 --- a/provision/cleanup.sh +++ b/provision/cleanup.sh @@ -4,3 +4,9 @@ set -e set -x yes | sudo pacman -Scc + +# Write zeros to improve virtual disk compaction. +zerofile=$(/usr/bin/mktemp /zerofile.XXXXX) +dd if=/dev/zero of="$zerofile" bs=1M || true +rm -f "$zerofile" +sync |