Fixed an incorrect delete command.
This commit is contained in:
parent
e351fc2680
commit
bb780fa1bb
@ -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.
|
# Kickstart file to build a Fedora Server Edition VM disk image.
|
||||||
# The image aims to resemble as close as technically possible the
|
# The image aims to resemble as close as technically possible the
|
||||||
# full features of a Fedora Server Edition in a virtual machine.
|
# full features of a Fedora Server Edition in a virtual machine.
|
||||||
@ -174,6 +174,11 @@ touch /etc/machine-id
|
|||||||
##### begin custom post script (after base) #########################
|
##### begin custom post script (after base) #########################
|
||||||
%post
|
%post
|
||||||
|
|
||||||
|
# When we build the image /var/log gets populated.
|
||||||
|
# Let's clean it up.
|
||||||
|
echo "Cleanup leftover in /var/log"
|
||||||
|
cd /var/log && find . -name \* -type f -delete
|
||||||
|
|
||||||
echo "Zeroing out empty space."
|
echo "Zeroing out empty space."
|
||||||
# Create zeros file with nodatacow and no compression
|
# Create zeros file with nodatacow and no compression
|
||||||
touch /var/tmp/zeros
|
touch /var/tmp/zeros
|
||||||
@ -192,10 +197,5 @@ rm -f /etc/systemd/system/default.target
|
|||||||
ln -s /lib/systemd/system/multi-user.target /etc/systemd/system/default.target
|
ln -s /lib/systemd/system/multi-user.target /etc/systemd/system/default.target
|
||||||
echo .
|
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
|
||||||
##### end custom post script ########################################
|
##### end custom post script ########################################
|
||||||
|
Loading…
Reference in New Issue
Block a user