index : arch-boxes32 | |
Archlinux32 virtual machines - obsolete | gitolite user |
summaryrefslogtreecommitdiff |
author | Christian Rebischke <Chris.Rebischke@posteo.de> | 2017-08-02 20:47:29 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2017-08-02 20:47:29 +0200 |
commit | c39cbfa32885b286e64f000f2ebbd768bf06f090 (patch) | |
tree | 61ccd56d5b16926222269e29a682074d93c7d199 /provision | |
parent | f9206846329cc1f6b89f510698267e5dec1ef2ca (diff) | |
parent | f445ebb0285dd30c01449691328e7c11194be0b7 (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 |