Fix 'export LANG=...' > /etc/locale.conf
This commit is contained in:
parent
a2581f7b49
commit
cba5e14181
|
@ -230,7 +230,10 @@ set_locale() {
|
||||||
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.gen /mnt/etc/locale.gen
|
cp -f /etc/locale.gen /mnt/etc/locale.gen
|
||||||
|
|
||||||
echo "export LANG=\"$LOCALE\"" > /mnt/etc/locale.conf
|
local short_locale
|
||||||
|
local encoding
|
||||||
|
read short_locale encoding <<< "$LOCALE"
|
||||||
|
echo "export LANG=\"$short_locale\"" > /mnt/etc/locale.conf
|
||||||
echo "done"
|
echo "done"
|
||||||
|
|
||||||
echo -n "Setting keyboard layout..."
|
echo -n "Setting keyboard layout..."
|
||||||
|
|
Loading…
Reference in New Issue