diff options
Diffstat (limited to 'scripts/zerodisk.sh')
-rw-r--r-- | scripts/zerodisk.sh | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/scripts/zerodisk.sh b/scripts/zerodisk.sh new file mode 100644 index 0000000..35370d6 --- /dev/null +++ b/scripts/zerodisk.sh @@ -0,0 +1,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 |