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
rm -rf /var/cache/yum/*
rm -f /tmp/ks-script*
# remove some extraneous files
rm -rf /var/cache/dnf/*
rm -rf /tmp/*
#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