Skip to content
Permalink
Newer
Older
100755 12 lines (9 sloc) 310 Bytes
Jim Van Fleet
Jul 7, 2016
1
#!/bin/bash -eux
2
3
# Zero out the rest of the free space using dd, then delete the written file.
4
dd if=/dev/zero of=/EMPTY bs=1M
5
rm -f /EMPTY
6
7
# Remove the centos user
8
userdel centos
Feb 9, 2017
9
echo user centos deletion exited with $?
Jim Van Fleet
Jul 7, 2016
11
# Add `sync` so Packer doesn't quit too early, before the large file is deleted.
12
sync
You can’t perform that action at this time.