Fixed serious SELinux issue.

This commit is contained in:
Peter Boy 2023-03-13 19:51:09 +01:00
parent e351fc2680
commit 48c25c9cce
1 changed files with 9 additions and 6 deletions

View File

@ -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.
@ -174,6 +174,12 @@ touch /etc/machine-id
##### begin custom post script (after base) #########################
%post
# When we build the image /var/log gets populated.
# Let's clean it up.
echo "Cleanup leftover in /var/log"
##rm -rf /var/log/*
cd /var/log && find . -name \* -type f -delete
echo "Zeroing out empty space."
# Create zeros file with nodatacow and no compression
touch /var/tmp/zeros
@ -191,11 +197,8 @@ echo -n "Setting default runlevel to multiuser text mode"
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/*
rm -f /var/log/anaconda/*
touch /.autorelabel
%end
##### end custom post script ########################################