diff options
author | xengineering <mail2xengineering@protonmail.com> | 2020-03-18 14:02:16 +0100 |
---|---|---|
committer | xengineering <mail2xengineering@protonmail.com> | 2020-03-18 14:02:16 +0100 |
commit | 9a3fb771fbce4b9ace6ee4bebdd60c9985210dff (patch) | |
tree | b5bd81bcc4243a7ca2b8abd360335f1f9dc4a507 | |
parent | 27dd408ef896e1d76e8d9b1ead2d19dd239b46ae (diff) | |
download | archinstall-9a3fb771fbce4b9ace6ee4bebdd60c9985210dff.tar archinstall-9a3fb771fbce4b9ace6ee4bebdd60c9985210dff.tar.zst archinstall-9a3fb771fbce4b9ace6ee4bebdd60c9985210dff.zip |
Implement Timezone and Localization
-rw-r--r-- | archinstall.sh | 3 | ||||
-rw-r--r-- | stages/second_stage.sh | 18 |
2 files changed, 20 insertions, 1 deletions
diff --git a/archinstall.sh b/archinstall.sh index dbff991..6f02551 100644 --- a/archinstall.sh +++ b/archinstall.sh @@ -70,7 +70,8 @@ export boot_mode="unknown" # alternatives: "bios" or "uefi" export path_to_disk="/dev/sda" # e.g. "/dev/sda" ######################## REMOVE FOR PRODUCTION export luks_encryption="no" # alternative: "yes" export path_to_timezone="/usr/share/zoneinfo/Europe/Berlin" -export locales_to_generate="de_DE.UTF-8 UTF-8;de_DE ISO-8859-1;de_DE@euro ISO-8859-15" +export locales_to_generate="de_DE.UTF-8 UTF-8\nde_DE ISO-8859-1\nde_DE@euro ISO-8859-15\n" +export language="de_DE.UTF-8" export keymap="de-latin1" export hostname="archlinux" # will be set to a user-chosen hostname diff --git a/stages/second_stage.sh b/stages/second_stage.sh index abb8ed9..3070e50 100644 --- a/stages/second_stage.sh +++ b/stages/second_stage.sh @@ -23,4 +23,22 @@ set -e +# Debug output + echo "Entering second_stage.sh - OK" + + +# Set timezone + +ln -sf $path_to_timezone /etc/localtime +hwclock --systohc + + +# Localization + +echo "$locales_to_generate" >> /etc/locale.gen +locale-gen +touch /etc/locale.conf +echo "LANG=$language" >> /etc/locale.conf +touch /etc/vconsole.conf +echo "KEYMAP=$keymap" >> /etc/vconsole.conf |