From 0ccd2c9a98d8f5fa33a91cf8dd534aa24e266671 Mon Sep 17 00:00:00 2001 From: Jason Mehring Date: Wed, 10 Jun 2015 17:01:33 -0400 Subject: [PATCH] Set a default locale if missing --- rpm_spec/core-vm.spec | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/rpm_spec/core-vm.spec b/rpm_spec/core-vm.spec index 65bc5f2..7995218 100644 --- a/rpm_spec/core-vm.spec +++ b/rpm_spec/core-vm.spec @@ -277,6 +277,14 @@ if [ ! -f '/etc/sysconfig/ip6tables' -o $1 = 1 ]; then cp -p /usr/lib/qubes/init/ip6tables /etc/sysconfig/ip6tables fi +%if %{fedora} >= 20 +# Make sure there is a default locale set so gnome-terminal will start +if [ ! -e /etc/locale.conf ] || ! grep -q LANG /etc/locale.conf; then + touch /etc/locale.conf + echo "LANG=en_US.utf8" >> /etc/locale.conf +fi +%endif + if [ "$1" != 1 ] ; then # do the rest of %post thing only when updating for the first time... exit 0 @@ -308,6 +316,7 @@ do mv $f /var/lib/qubes/removed-udev-scripts/ done mkdir -p /rw + #rm -f /etc/mtab #echo "--> Removing HWADDR setting from /etc/sysconfig/network-scripts/ifcfg-eth0" #mv /etc/sysconfig/network-scripts/ifcfg-eth0 /etc/sysconfig/network-scripts/ifcfg-eth0.orig