diff options
author | pico.dev <pico.dev@gmail.com> | 2020-03-09 15:10:55 +0100 |
---|---|---|
committer | pico.dev <pico.dev@gmail.com> | 2020-03-09 15:10:55 +0100 |
commit | 524e8a18d90475330f28d9127cb5aeb6607eb340 (patch) | |
tree | 30242c0be4ad7be6874abc993d048a5e4d5b7170 /alis.sh | |
parent | 41145b9e679ca37c47cfd8a360fbb104aa54af09 (diff) |
Generate locales and set locale variables for arch installation
Fixes #79
Diffstat (limited to 'alis.sh')
-rw-r--r-- | alis.sh | 3 |
1 files changed, 3 insertions, 0 deletions
@@ -563,10 +563,13 @@ function configuration() { arch-chroot /mnt ln -s -f $TIMEZONE /etc/localtime arch-chroot /mnt hwclock --systohc for LOCALE in "${LOCALES[@]}"; do + sed -i "s/#$LOCALE/$LOCALE/" /etc/locale.gen sed -i "s/#$LOCALE/$LOCALE/" /mnt/etc/locale.gen done + locale-gen arch-chroot /mnt locale-gen for VARIABLE in "${LOCALE_CONF[@]}"; do + localectl set-locale "$VARIABLE" echo -e "$VARIABLE" >> /mnt/etc/locale.conf done echo -e "$KEYMAP\n$FONT\n$FONT_MAP" > /mnt/etc/vconsole.conf |