Fix hard-coded locale
This commit is contained in:
parent
9f15148ea8
commit
94835ef01d
|
@ -228,9 +228,9 @@ set_locale() {
|
||||||
sed "s/^#$LOCALE/$LOCALE/" < /mnt/etc/locale.gen > /etc/locale.gen
|
sed "s/^#$LOCALE/$LOCALE/" < /mnt/etc/locale.gen > /etc/locale.gen
|
||||||
quiet locale-gen
|
quiet locale-gen
|
||||||
cp -f /usr/lib/locale/locale-archive /mnt/usr/lib/locale/locale-archive
|
cp -f /usr/lib/locale/locale-archive /mnt/usr/lib/locale/locale-archive
|
||||||
|
cp -f /etc/locale.gec /mnt/etc/locale.gen
|
||||||
|
|
||||||
echo "export LANG=\"en_US.UTF-8\"" > /mnt/etc/locale.conf
|
echo "export LANG=\"$LOCALE\"" > /mnt/etc/locale.conf
|
||||||
echo "export LC_COLLATE=\"C\"" >> /mnt/etc/locale.conf
|
|
||||||
echo "done"
|
echo "done"
|
||||||
|
|
||||||
echo -n "Setting keyboard layout..."
|
echo -n "Setting keyboard layout..."
|
||||||
|
|
Loading…
Reference in New Issue