1
0
forked from extern/nix-config

archlinux: Always uncomment lines in locale.gen

It turns out that replacing the contents of locale.gen with the locales
you want is not a good idea, since then it is impossible to reference
the file at a later date to make changes as needed.
This commit is contained in:
Donovan Glover 2018-12-03 18:59:52 -05:00
parent a114435391
commit 17ee1c287b
No known key found for this signature in database
GPG Key ID: EA7408A77AE1BE65

View File

@ -25,7 +25,7 @@ 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
echo "en_US.UTF-8 UTF-8" > /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