#!/bin/bash -x

# Clean up leftover build files
rm -fr /home/*/{.ssh,.ansible,.cache}
rm -fr /root/{.ssh,.ansible,.cache}
rm -fr /root/'~'*

dd if=/dev/zero of=/EMPTY bs=1M
rm -f /EMPTY
sync

#!/bin/bash -x

# Clean up leftover build files
rm -fr /home/*/{.ssh,.ansible,.cache}
rm -fr /root/{.ssh,.ansible,.cache}
rm -fr /root/'~'*

# Truncate any log files
find /var/log -type f -print0 | xargs -0 truncate -s0

dd if=/dev/zero of=/EMPTY bs=1M
rm -f /EMPTY
sync

Truncate log files right at the end
Truncate log files right at the end

Change-Id: I468876d8fcf413f61e7783e91b683464ba4d3f36
