From bd8d33d5c2b1a1b66300738c907b8dd34b94eb48 Mon Sep 17 00:00:00 2001 From: Peter Boy Date: Wed, 5 Oct 2022 17:59:53 +0200 Subject: [PATCH] Added cleanup of /var/log --- fedora-server-vm-full.ks | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/fedora-server-vm-full.ks b/fedora-server-vm-full.ks index 370263a..967c5d1 100644 --- a/fedora-server-vm-full.ks +++ b/fedora-server-vm-full.ks @@ -192,5 +192,10 @@ rm -f /etc/systemd/system/default.target ln -s /lib/systemd/system/multi-user.target /etc/systemd/system/default.target echo . +# When we build the image /var/log gets populated. +# Let's clean it up. +echo "Cleanup leftover in /var/log" +rm -rf /var/log/* + %end ##### end custom post script ########################################