Skip to content
Snippets Groups Projects
Commit c39cbfa3 authored by Christian Rebischke's avatar Christian Rebischke Committed by GitHub
Browse files

Merge pull request #17 from appleby/improve-disk-compaction

Write zeros to disk to improve disk compression
parents f9206846 f445ebb0
No related branches found
No related tags found
No related merge requests found
......@@ -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
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment