bug 4473: fix for locales setup for Ubuntu stateless nodes

This commit is contained in:
ligc 2014-12-23 09:28:52 +08:00
parent a9cc379b7f
commit 9597e0664d
2 changed files with 10 additions and 3 deletions
xCAT-server/share/xcat/netboot/ubuntu

3
xCAT-server/share/xcat/netboot/ubuntu/compute.exlist Normal file → Executable file

@ -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*

@ -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