From 18c8df6256621ff3ca606a51f68424748a67807b 2019-03-07 11:01:09 From: Jens Date: 2019-03-07 11:01:09 Subject: [PATCH] do set in chroot not on host system locales are set on host not on chroot --- diff --git a/bootstrap.d/12-locale.sh b/bootstrap.d/12-locale.sh index 79496f5..c086ee2 100644 --- a/bootstrap.d/12-locale.sh +++ b/bootstrap.d/12-locale.sh @@ -23,15 +23,15 @@ if [ "$(echo "$APT_INCLUDES" | grep ",locales")" ] ; then # https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=684134 https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=685957 # ... so we have to set locales manually if [ "$DEFLOCAL" = "en_US.UTF-8" ] ; then - chroot_exec echo "locales locales/locales_to_be_generated multiselect ${DEFLOCAL} UTF-8" | debconf-set-selections + chroot_exec echo "locales locales/locales_to_be_generated multiselect ${DEFLOCAL} UTF-8 | debconf-set-selections" else # en_US.UTF-8 should be available anyway : https://www.debian.org/doc/manuals/debian-reference/ch08.en.html#_the_reconfiguration_of_the_locale - chroot_exec echo "locales locales/locales_to_be_generated multiselect en_US.UTF-8 UTF-8, ${DEFLOCAL} UTF-8" | debconf-set-selections + chroot_exec echo "locales locales/locales_to_be_generated multiselect en_US.UTF-8 UTF-8, ${DEFLOCAL} UTF-8 | debconf-set-selections" sed -i "/en_US.UTF-8/s/^#//" "${ETC_DIR}/locale.gen" fi sed -i "/${DEFLOCAL}/s/^#//" "${ETC_DIR}/locale.gen" - chroot_exec echo "locales locales/default_environment_locale select ${DEFLOCAL}" | debconf-set-selections + chroot_exec echo "locales locales/default_environment_locale select ${DEFLOCAL} | debconf-set-selections" chroot_exec locale-gen chroot_exec update-locale LANG="${DEFLOCAL}"