From 9597e0664dd0127a1b25eb8cb2ebfcdcd8a02f89 Mon Sep 17 00:00:00 2001 From: ligc Date: Tue, 23 Dec 2014 09:28:52 +0800 Subject: [PATCH] bug 4473: fix for locales setup for Ubuntu stateless nodes --- xCAT-server/share/xcat/netboot/ubuntu/compute.exlist | 3 --- .../share/xcat/netboot/ubuntu/compute.postinstall | 10 ++++++++++ 2 files changed, 10 insertions(+), 3 deletions(-) mode change 100644 => 100755 xCAT-server/share/xcat/netboot/ubuntu/compute.exlist diff --git a/xCAT-server/share/xcat/netboot/ubuntu/compute.exlist b/xCAT-server/share/xcat/netboot/ubuntu/compute.exlist old mode 100644 new mode 100755 index 7241cb38b..75696db9d --- a/xCAT-server/share/xcat/netboot/ubuntu/compute.exlist +++ b/xCAT-server/share/xcat/netboot/ubuntu/compute.exlist @@ -1,6 +1,4 @@ ./usr/share/man/* -./usr/share/locale/* -./usr/share/i18n* ./var/cache/yum* ./usr/share/doc* ./usr/share/gnome* @@ -8,6 +6,5 @@ ./usr/share/cracklib* ./usr/share/info* ./usr/share/omf* -./usr/lib/locale* ./usr/lib/perl5* ./boot* diff --git a/xCAT-server/share/xcat/netboot/ubuntu/compute.postinstall b/xCAT-server/share/xcat/netboot/ubuntu/compute.postinstall index 828e706cd..a69ec1e64 100755 --- a/xCAT-server/share/xcat/netboot/ubuntu/compute.postinstall +++ b/xCAT-server/share/xcat/netboot/ubuntu/compute.postinstall @@ -41,3 +41,13 @@ END #for ext in pkglist exlist postinstall repolist; do # [ -r $workdir/$profile.$ext ] && cat $workdir/$profile.$ext | grep -E '^[[:space:]]*#.*[[:space:]]\$Id' >> $installroot/etc/IMGVERSION #done + + +#Setup locale for Ubuntu diskless nodes +echo "Setting up the locales"; +chroot $installroot \ + locale-gen en_US.UTF-8 en_US +chroot $installroot \ + update-locale +chroot $installroot \ + dpkg-reconfigure locales