1
1
mirror of https://pagure.io/fedora-kickstarts.git synced 2024-11-15 13:13:08 +00:00

docker-min: a few more things that can be removed

This commit is contained in:
Dusty Mabe 2017-01-20 18:28:39 -05:00
parent 6f0cdf042d
commit 42b8714c65
No known key found for this signature in database
GPG Key ID: 3302DBD73952E671

View File

@ -67,6 +67,23 @@ rm -rfv usr/lib64/nss/unsupported-tools/ # unsupported
rm -fv usr/sbin/{glibc_post_upgrade.x86_64,sln}
ln usr/bin/ln usr/sbin/sln
# Remove some dnf info
rm -rfv /var/lib/dnf
# don't need icons
rm -rfv /usr/share/icons/*
#some random not-that-useful binaries
rm -fv /usr/bin/pinky
# we lose presets by removing /usr/lib/systemd but we do not care
rm -rfv /usr/lib/systemd
# if you want to change the timezone, bind-mount it from the host or reinstall tzdata
rm -fv /etc/localtime
mv /usr/share/zoneinfo/UTC /etc/localtime
rm -rfv /usr/share/zoneinfo
# Final pruning
rm -rfv var/cache/* var/log/* tmp/*