Fix hard-coded locale

This commit is contained in:
Augusto Gunsch 2021-08-13 13:19:50 -03:00
parent 9f15148ea8
commit 94835ef01d
No known key found for this signature in database
GPG Key ID: F7EEFE29825C72DC
1 changed files with 2 additions and 2 deletions

View File

@ -228,9 +228,9 @@ set_locale() {
sed "s/^#$LOCALE/$LOCALE/" < /mnt/etc/locale.gen > /etc/locale.gen
quiet locale-gen
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 LC_COLLATE=\"C\"" >> /mnt/etc/locale.conf
echo "export LANG=\"$LOCALE\"" > /mnt/etc/locale.conf
echo "done"
echo -n "Setting keyboard layout..."