Skip to content
Snippets Groups Projects
Unverified Commit 66a78afe authored by Christian Rebischke's avatar Christian Rebischke
Browse files

making the zero write optional

parent c39cbfa3
No related branches found
No related tags found
No related merge requests found
......@@ -3,10 +3,5 @@
set -e
set -x
# clear package cache
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
#/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
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