#920 Added cleanup of /var/log
Closed 2 years ago by pboy. Opened 2 years ago by pboy.
pboy/fedora-kickstarts f37  into  f37

file modified
+6 -1
@@ -1,4 +1,4 @@ 

- # fedora-server-vm-full.ks (rel. 1.01)

+ # fedora-server-vm-full.ks (rel. 1.02)

  # Kickstart file to build a Fedora Server Edition VM disk image.

  # The image aims to resemble as close as technically possible the

  # full features of a Fedora Server Edition in a virtual machine.
@@ -190,5 +190,10 @@ 

  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 ########################################

Testing revealed that /var/log contains a lot of trash from the image building. It has to be cleared.

It's too late now for F37. Leaving the /var/log directory as filled by imagefactory is unattractive, but does not cause errors. Therefore, this is not to be corrected for F37.

So do not include this patch.

Pull-Request has been closed by pboy

2 years ago
Metadata