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

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