1
1
mirror of https://pagure.io/fedora-kickstarts.git synced 2024-11-04 23:54:21 +00:00

Setup the correct locale in the base image.

Since the base image is now using the minimal glibc langpack we need
to use the POSIX locale.

Fixes https://bugzilla.redhat.com/show_bug.cgi?id=1727489

Signed-off-by: Clement Verna <cverna@tutanota.com>
This commit is contained in:
Clement Verna 2019-07-07 10:55:42 +02:00
parent 31e2c58081
commit 9dbe324625

View File

@ -47,3 +47,15 @@ systemd-tmpfiles --prefix=/run/ --prefix=/var/run/ --create --boot || true
rm /run/nologin # https://pagure.io/atomic-wg/issue/316
%end
%post --nochroot --erroronfail --log=/mnt/sysimage/root/anaconda-post-nochroot.log
set -eux
# See: https://bugzilla.redhat.com/show_bug.cgi?id=1051816
# NOTE: run this in nochroot because "find" does not exist in chroot
KEEPLANG=en_US
for dir in locale i18n; do
find /mnt/sysimage/usr/share/${dir} -mindepth 1 -maxdepth 1 -type d -not \( -name "${KEEPLANG}" -o -name POSIX \) -exec rm -rfv {} +
done
%end