Send patches - preferably formatted by git format-patch - to patches at archlinux32 dot org.
summaryrefslogtreecommitdiff
path: root/provision/write_zeroes.sh
blob: a7fac3e9e08c3f11f9b74fe253a7b082d34d0a6b (plain)
1
2
3
4
5
6
7
8
9
10
#/bin/bash

set -e
set -x

# 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