From 66f3423525db7b0eac5a86b3db61ee8247d66e9e Mon Sep 17 00:00:00 2001 From: Matthew Miller Date: Sat, 8 Nov 2014 13:29:50 -0500 Subject: [PATCH] hack around instLangs not working (due to https://bugzilla.redhat.com/show_bug.cgi?id=1051816) --- fedora-cloud-base.ks | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/fedora-cloud-base.ks b/fedora-cloud-base.ks index 774cd25..82bbec6 100644 --- a/fedora-cloud-base.ks +++ b/fedora-cloud-base.ks @@ -37,6 +37,8 @@ part / --size 3000 --fstype ext4 reboot # Package list. +# FIXME: instLangs does not work, so there's a hack below +# (see https://bugzilla.redhat.com/show_bug.cgi?id=1051816) %packages --instLangs=en kernel-core @@ -117,6 +119,13 @@ yum -C -y remove "firewalld*" --setopt="clean_requirements_on_remove=1" echo "Removing authconfig." yum -C -y remove authconfig --setopt="clean_requirements_on_remove=1" +# 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 -n "Getty fixes" # although we want console output going to the serial console, we don't # actually have the opportunity to login there. FIX.