From 53a0ab8f48d50bc1f923cd240d343d766182bbe2 Mon Sep 17 00:00:00 2001 From: Fabio Erculiani Date: Fri, 12 Aug 2016 22:33:34 +0200 Subject: [PATCH] [scripts] make sure to only write /etc/locale.conf and force 02locale as symlink. This fixes locale config after install. --- scripts/inner_chroot_script.sh | 11 ++++++----- 1 file changed, 6 insertions(+), 5 deletions(-) diff --git a/scripts/inner_chroot_script.sh b/scripts/inner_chroot_script.sh index d501ee5..b9966bd 100755 --- a/scripts/inner_chroot_script.sh +++ b/scripts/inner_chroot_script.sh @@ -58,11 +58,12 @@ cp /etc/skel /root -Rap chown root:root /root -R # Setup locale to en_US -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 +echo LANG=en_US.UTF-8 > /etc/locale.conf +echo LANGUAGE=en_US.UTF-8 >> /etc/locale.conf +echo LC_ALL=en_US.UTF-8 >> /etc/locale.conf +# Make sure that 02locale is a symlink to locale.conf +rm -f /etc/env.d/02locale +ln -sf ../locale.conf /etc/env.d/02locale if [ -n "${UPGRADE_REPO}" ]; then