From 33b55e6e1c835e9b1d7e48e655909936e35180fa Mon Sep 17 00:00:00 2001 From: Fabio Erculiani Date: Wed, 24 Apr 2013 21:31:33 +0200 Subject: [PATCH] [scripts] inner_chroot_script: add vconsole.conf setup, rewrite locale defaults setup --- scripts/inner_chroot_script.sh | 15 ++++++++++++--- 1 file changed, 12 insertions(+), 3 deletions(-) diff --git a/scripts/inner_chroot_script.sh b/scripts/inner_chroot_script.sh index 3d43b6f..369741a 100755 --- a/scripts/inner_chroot_script.sh +++ b/scripts/inner_chroot_script.sh @@ -33,9 +33,18 @@ cp /etc/skel /root -Rap chown root:root /root -R # Setup locale to en_US -echo LANG=\"en_US.UTF-8\" > /etc/env.d/02locale -echo LANGUAGE=\"en_US.UTF-8\" >> /etc/env.d/02locale -echo LC_ALL=\"en_US.UTF-8\" >> /etc/env.d/02locale +for f in /etc/env.d/02locale /etc/locale.conf; do + echo LANG=en_US.UTF-8 > "${f}" + echo LANGUAGE=en_US.UTF-8 >> "${f}" + echo LC_ALL=en_US.UTF-8 >> "${f}" +done +# Needed by systemd, because it doesn't properly set a good +# encoding in ttys. Test it with (on tty1, VT1): +# echo -e "\xE2\x98\xA0" +# TODO: check if the issue persists with systemd 202. +echo FONT=latarcyrheb-sun16 > /etc/vconsole.conf +echo FONT_MAP=8859-1_to_uni >> /etc/vconsole.conf +echo FONT_UNIMAP=iso01 >> /etc/vconsole.conf # remove SSH keys rm -rf /etc/ssh/*_key*