From 4779053a2e94219a76d71d33a4d0e3fa68685094 Mon Sep 17 00:00:00 2001 From: Martin Pitt Date: Mon, 26 Aug 2024 05:07:59 +0200 Subject: [PATCH] images: Don't remove journal machine log directory This regressed in RHEL 10: https://issues.redhat.com/browse/RHEL-56025 --- images/scripts/lib/zero-disk.setup | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/images/scripts/lib/zero-disk.setup b/images/scripts/lib/zero-disk.setup index d788ee1be9..c410d026ba 100755 --- a/images/scripts/lib/zero-disk.setup +++ b/images/scripts/lib/zero-disk.setup @@ -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