1
1
mirror of https://pagure.io/fedora-kickstarts.git synced 2024-11-14 04:44:22 +00:00

Only base containers should have tzdata

The base container should always install tzdata to ensure that it is
available for applications built on top of the base container.

The minimal container should never have tzdata installed, and the
application should install it as part of the application dependencies.

Starting with Fedora 39 we have the capability to remove tzdata from
the minimal images without resorting to deleting files:
https://fedoraproject.org/wiki/Changes/AllowRemovalOfTzdata
This commit is contained in:
Carlos O'Donell 2023-10-24 07:33:29 -04:00
parent 0dda83fc8a
commit 04e1ba3b6e
2 changed files with 2 additions and 6 deletions

View File

@ -6,7 +6,7 @@
%packages --excludedocs --instLangs=en --nocore --excludeWeakdeps
microdnf
-tzdata
%end
%post --erroronfail --log=/root/anaconda-post.log
@ -33,11 +33,6 @@ 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/*

View File

@ -35,6 +35,7 @@ fedora-release-container
bash
coreutils
glibc-minimal-langpack
tzdata
rpm
util-linux-core
-kernel