forked from extern/nix-config
archlinux: Properly state how locales are created and used
It turns out that locale.gen is used to generate the locales that can be set with locale.conf.
This commit is contained in:
parent
17ee1c287b
commit
f342218993
@ -23,13 +23,13 @@ echo "127.0.0.1 localhost" >> /mnt/etc/hosts
|
||||
echo "::1 localhost" >> /mnt/etc/hosts
|
||||
echo "127.0.1.1 $HOSTNAME.localdomain $HOSTNAME" >> /mnt/etc/hosts
|
||||
|
||||
# Set the language to English and use the en_US.UTF-8 locale.
|
||||
echo "LANG=en_US.UTF-8" > /mnt/etc/locale.conf
|
||||
# Declare which locales we want to generate and generate them
|
||||
sed -i '/#en_US.UTF-8 UTF-8/s/^#//g' /mnt/etc/locale.gen
|
||||
|
||||
# Generate the locale.
|
||||
arch-chroot /mnt locale-gen
|
||||
|
||||
# Set the system locale to the generated en_US.UTF-8
|
||||
echo "LANG=en_US.UTF-8" > /mnt/etc/locale.conf
|
||||
|
||||
# Set the tty font to a larger one (same as the default setfont, but larger)
|
||||
if [ "$HIDPI" == "YES" ]; then
|
||||
echo "FONT=latarcyrheb-sun32" > /mnt/etc/vconsole.conf
|
||||
|
Loading…
Reference in New Issue
Block a user