Skip to content

Commit f60d6d7

Browse files
committed
zero out more things
1 parent d2dde80 commit f60d6d7

File tree

2 files changed

+14
-1
lines changed

2 files changed

+14
-1
lines changed

ansible/vars.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ postgres_major:
1010
# Full version strings for each major version
1111
postgres_release:
1212
postgresorioledb-17: "17.5.1.009-orioledb"
13-
postgres17: "17.4.1.067-rc.1"
13+
postgres17: "17.4.1.067-rc.2"
1414
postgres15: "15.8.1.123"
1515

1616
# Non Postgres Extensions

scripts/90-cleanup-qemu.sh

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -72,6 +72,9 @@ rm -rf /tmp/* /var/tmp/*
7272
history -c
7373
cat /dev/null > /root/.bash_history
7474
unset HISTFILE
75+
76+
journalctl --rotate
77+
journalctl --vacuum-time=1s
7578
find /var/log -mtime -1 -type f -exec truncate -s 0 {} \;
7679
rm -rf /var/log/*.gz /var/log/*.[0-9] /var/log/*-????????
7780
rm -rf /var/lib/cloud/instances/*
@@ -81,4 +84,14 @@ chmod 600 /etc/ssh/revoked_keys
8184

8285
cat /dev/null > /var/log/lastlog
8386
cat /dev/null > /var/log/wtmp
87+
88+
dd if=/dev/zero of=/zerofile &
89+
PID=$!
90+
while [ -d /proc/$PID ]
91+
do
92+
printf "."
93+
sleep 5
94+
done
95+
sync; rm /zerofile; sync
96+
8497
fstrim /

0 commit comments

Comments
 (0)