summaryrefslogtreecommitdiff
path: root/scripts/zerodisk.sh
blob: 530ca4d06f9d5b507cc8b14e6762c2b2bc328a97 (plain)
1
2
3
4
5
6
7
8
9
10
#!/bin/bash

# Zero out the free space to save space in the final image:
dd if=/dev/zero of=/tmp/EMPTY bs=1M
rm -f /EMPTY

# Sync to ensure that the delete completes before this moves on.
sync
sync
sync