From 9a3fb771fbce4b9ace6ee4bebdd60c9985210dff Mon Sep 17 00:00:00 2001 From: xengineering Date: Wed, 18 Mar 2020 14:02:16 +0100 Subject: Implement Timezone and Localization --- stages/second_stage.sh | 18 ++++++++++++++++++ 1 file changed, 18 insertions(+) (limited to 'stages/second_stage.sh') 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 -- cgit v1.2.3-70-g09d2