Merge "Truncate instead of deleting log files"

This commit is contained in:
Jenkins 2014-08-29 17:03:28 +00:00 committed by Gerrit Code Review
commit 7da217b8f1

View File

@ -20,7 +20,7 @@ set -eux
set -o pipefail
# Truncate /var/log files in preparation for first boot
sudo find $TARGET_ROOT/var/log -type f -delete
sudo find $TARGET_ROOT/var/log -type f -exec cp /dev/null '{}' \;
# also /root logs
sudo find $TARGET_ROOT/root -name \*.log -type f -delete