1
1
mirror of https://pagure.io/fedora-kickstarts.git synced 2024-12-27 05:23:08 +00:00

docker: fix some paths on file cleanup

Point to dnf cache and clean up everything in tmp.
This commit is contained in:
Dusty Mabe 2017-01-19 14:32:47 -05:00
parent e5815d62cd
commit 461523481b
No known key found for this signature in database
GPG Key ID: 3302DBD73952E671

View File

@ -59,8 +59,9 @@ rpm --import /etc/pki/rpm-gpg/RPM-GPG-KEY-fedora-$releasever-$basearch
echo "# fstab intentionally empty for containers" > /etc/fstab echo "# fstab intentionally empty for containers" > /etc/fstab
rm -rf /var/cache/yum/* # remove some extraneous files
rm -f /tmp/ks-script* rm -rf /var/cache/dnf/*
rm -rf /tmp/*
#Mask mount units and getty service so that we don't get login prompt #Mask mount units and getty service so that we don't get login prompt
systemctl mask systemd-remount-fs.service dev-hugepages.mount sys-fs-fuse-connections.mount systemd-logind.service getty.target console-getty.service systemctl mask systemd-remount-fs.service dev-hugepages.mount sys-fs-fuse-connections.mount systemd-logind.service getty.target console-getty.service