1
1
mirror of https://pagure.io/fedora-kickstarts.git synced 2024-11-16 13:43:09 +00:00

cloud: remove instLang hacks

`%packages --instLangs=en` works as intended now.

(cherry picked from commit 10573df5c2)
This commit is contained in:
Dusty Mabe 2020-09-02 17:07:06 -04:00
parent 11732dafb1
commit 65794f7902
No known key found for this signature in database
GPG Key ID: 3302DBD73952E671

View File

@ -45,14 +45,7 @@ autopart --noboot --nohome --noswap --nolvm
reboot
# Package list.
# FIXME: instLangs does not work, so there's a hack below
# (see https://bugzilla.redhat.com/show_bug.cgi?id=1051816)
# FIXME: instLangs bug has been fixed but now having instLangs
# with an arg causes no langs to get installed because of BZ1262040
# which yields the errors in BZ1261249. For now fix by not using
# --instLangs at all
#%packages --instLangs=en
%packages
%packages --instLangs=en
kernel-core
@^cloud-server-environment
@ -105,17 +98,6 @@ echo "Removing firewalld."
# dnf -C -y remove "firewalld*" --setopt="clean_requirements_on_remove=1"
dnf -C -y erase "firewalld*"
# instlang hack. (Note! See bug referenced above package list)
find /usr/share/locale -mindepth 1 -maxdepth 1 -type d -not -name en_US -exec rm -rf {} +
localedef --list-archive | grep -v ^en_US | xargs localedef --delete-from-archive
# this will kill a live system (since it's memory mapped) but should be safe offline
mv -f /usr/lib/locale/locale-archive /usr/lib/locale/locale-archive.tmpl
build-locale-archive
echo '%_install_langs C:en:en_US:en_US.UTF-8' >> /etc/rpm/macros.image-language-conf
echo "Removing random-seed so it's not the same in every image."
rm -f /var/lib/systemd/random-seed