From b9cc3f47e2bd9c1e942c0ae3ace8b0cec687f493 Mon Sep 17 00:00:00 2001 From: Fabian Arrotin Date: Jun 21 2014 20:48:39 +0000 Subject: Fixed the Language selection bug - see http://bugs.centos.org/view.php?id=7217 --- diff --git a/kickstarts/centos-7-live-gnome.cfg b/kickstarts/centos-7-live-gnome.cfg index 84fc556..c7eaf14 100644 --- a/kickstarts/centos-7-live-gnome.cfg +++ b/kickstarts/centos-7-live-gnome.cfg @@ -206,6 +206,10 @@ touch /.liveimg-configured # https://bugzilla.redhat.com/show_bug.cgi?id=679486 echo "localhost" > /etc/hostname +# Fixing the lang install issue when other lang than English is selected . See http://bugs.centos.org/view.php?id=7217 +/usr/bin/cp /usr/lib/python2.7/site-packages/blivet/size.py /usr/lib/python2.7/site-packages/blivet/size.py.orig +/usr/bin/sed -i "s#return self.humanReadable()#return self.humanReadable().encode('utf-8')#g" /usr/lib/python2.7/site-packages/blivet/size.py + EOF # bah, hal starts way too late diff --git a/kickstarts/centos-7-live-kde.cfg b/kickstarts/centos-7-live-kde.cfg index a68c6aa..7b01001 100644 --- a/kickstarts/centos-7-live-kde.cfg +++ b/kickstarts/centos-7-live-kde.cfg @@ -207,6 +207,10 @@ touch /.liveimg-configured # https://bugzilla.redhat.com/show_bug.cgi?id=679486 echo "localhost" > /etc/hostname +# Fixing the lang install issue when other lang than English is selected . See http://bugs.centos.org/view.php?id=7217 +/usr/bin/cp /usr/lib/python2.7/site-packages/blivet/size.py /usr/lib/python2.7/site-packages/blivet/size.py.orig +/usr/bin/sed -i "s#return self.humanReadable()#return self.humanReadable().encode('utf-8')#g" /usr/lib/python2.7/site-packages/blivet/size.py + EOF # bah, hal starts way too late diff --git a/kickstarts/centos-7-livecd.cfg b/kickstarts/centos-7-livecd.cfg index ad743ac..603162a 100644 --- a/kickstarts/centos-7-livecd.cfg +++ b/kickstarts/centos-7-livecd.cfg @@ -1186,6 +1186,10 @@ touch /.liveimg-configured # https://bugzilla.redhat.com/show_bug.cgi?id=679486 echo "localhost" > /etc/hostname +# Fixing the lang install issue when other lang than English is selected . See http://bugs.centos.org/view.php?id=7217 +/usr/bin/cp /usr/lib/python2.7/site-packages/blivet/size.py /usr/lib/python2.7/site-packages/blivet/size.py.orig +/usr/bin/sed -i "s#return self.humanReadable()#return self.humanReadable().encode('utf-8')#g" /usr/lib/python2.7/site-packages/blivet/size.py + EOF # bah, hal starts way too late