summaryrefslogtreecommitdiff
path: root/scripts/zerodisk.sh
blob: 35370d64a3d7e3385c0c43d5e85ac220dd2f6e9e (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=/EMPTY bs=1M
rm -f /EMPTY

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