Skip to content

Commit

Permalink
images: Don't remove journal machine log directory
Browse files Browse the repository at this point in the history
  • Loading branch information
martinpitt committed Aug 26, 2024
1 parent 89fc52b commit 4779053
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion images/scripts/lib/zero-disk.setup
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,7 @@ rm -rf /var/tmp/*
# try to not continue to write to /var for this setup boot
# HACK: hangs forever in c8s due to https://bugzilla.redhat.com/show_bug.cgi?id=2174645
timeout 10 journalctl --relinquish-var || true
rm -rf /var/log/journal/*
find /var/log/journal/ -type f -delete

if [ $(findmnt / -n -o fstype) != "btrfs" ]; then
dd if=/dev/zero of=/root/junk || true
Expand Down

0 comments on commit 4779053

Please sign in to comment.