Sign in
apache
/
infrastructure-packer
/
refs/heads/master
/
.
/
scripts
/
common
/
minimize.sh
blob: 670aca7acec3a8131f30137e9fda2b58a9d79679 [
file
] [
log
] [
blame
]
#!/bin/sh -eux
dd
if
=/
dev
/
zero of
=/
EMPTY bs
=
1M
||
echo
"dd exit code $? is suppressed"
;
rm
-
f
/
EMPTY
;
# Block until the empty file has been removed, otherwise, Packer
# will try to kill the box while the disk is still full and that's bad
sync
;