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 "::1 localhost" >> /mnt/etc/hosts
|
||||||
echo "127.0.1.1 $HOSTNAME.localdomain $HOSTNAME" >> /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.
|
# Declare which locales we want to generate and generate them
|
||||||
echo "LANG=en_US.UTF-8" > /mnt/etc/locale.conf
|
|
||||||
sed -i '/#en_US.UTF-8 UTF-8/s/^#//g' /mnt/etc/locale.gen
|
sed -i '/#en_US.UTF-8 UTF-8/s/^#//g' /mnt/etc/locale.gen
|
||||||
|
|
||||||
# Generate the locale.
|
|
||||||
arch-chroot /mnt locale-gen
|
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)
|
# Set the tty font to a larger one (same as the default setfont, but larger)
|
||||||
if [ "$HIDPI" == "YES" ]; then
|
if [ "$HIDPI" == "YES" ]; then
|
||||||
echo "FONT=latarcyrheb-sun32" > /mnt/etc/vconsole.conf
|
echo "FONT=latarcyrheb-sun32" > /mnt/etc/vconsole.conf
|
||||||
|
Loading…
Reference in New Issue
Block a user