Merge "Truncate instead of deleting log files"
This commit is contained in:
commit
7da217b8f1
@ -20,7 +20,7 @@ set -eux
|
|||||||
set -o pipefail
|
set -o pipefail
|
||||||
|
|
||||||
# Truncate /var/log files in preparation for first boot
|
# 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
|
# also /root logs
|
||||||
sudo find $TARGET_ROOT/root -name \*.log -type f -delete
|
sudo find $TARGET_ROOT/root -name \*.log -type f -delete
|
||||||
|
Loading…
Reference in New Issue
Block a user