From 42b8714c65ff157362744434ad5d64b1b6db5e55 Mon Sep 17 00:00:00 2001 From: Dusty Mabe Date: Fri, 20 Jan 2017 18:28:39 -0500 Subject: [PATCH] docker-min: a few more things that can be removed --- fedora-docker-base-minimal.ks | 17 +++++++++++++++++ 1 file changed, 17 insertions(+) diff --git a/fedora-docker-base-minimal.ks b/fedora-docker-base-minimal.ks index 9f2ad2c..7fb67b6 100644 --- a/fedora-docker-base-minimal.ks +++ b/fedora-docker-base-minimal.ks @@ -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/*