X-Git-Url: https://git.grml.org/?a=blobdiff_plain;ds=sidebyside;f=chroot-script;fp=chroot-script;h=8feccfaeaf68cef7255ece8d16bcf862ff4ef1a9;hb=f36c552a5b17f157d4777865122c9f015762dd80;hp=68514e09014c57da6d01a78ab06f805c50ed1860;hpb=6839f3bd4fc3c5bdceee79a0c6bb694116f76809;p=grml-debootstrap.git diff --git a/chroot-script b/chroot-script index 68514e0..8feccfa 100755 --- a/chroot-script +++ b/chroot-script @@ -442,15 +442,15 @@ EOF # set default locales {{{ default_locales() { - if [ -n "$DEFAULT_LOCALES" ] ; then - if ! [ -x /usr/sbin/update-locale ] ; then - echo "Warning: update-locale executable not available (no locales package installed?)" - echo "Ignoring request to run update-locale for $DEFAULT_LOCALES therefore" - return 0 - fi - - /usr/sbin/update-locale LANGUAGE="$DEFAULT_LANGUAGE" LANG="$DEFAULT_LOCALES" + if ! [ -x "$(command -v update-locale)" ] ; then + echo "Warning: update-locale executable not available (no locales package installed?)" + echo "Ignoring request to run update-locale for C.UTF-8 therefore" + return 0 fi + + echo "Setting C.UTF-8 as default LANG" + /usr/sbin/update-locale LANG='C.UTF-8' + echo 'locales locales/default_environment_locale select C.UTF-8' | debconf-set-selections } # }}}