X-Git-Url: https://git.grml.org/?p=grml-debootstrap.git;a=blobdiff_plain;f=chroot-script;h=6d01a89dfa915983354b2ec43a74732059410464;hp=cf99596273b53a32f33b3d59fcacdcd9f3b1e648;hb=af829102cc6c691bed053ef804c9d08495e65905;hpb=e45e376b45ef53014bd6f56164be2b5cbc9f49a1 diff --git a/chroot-script b/chroot-script index cf99596..6d01a89 100755 --- a/chroot-script +++ b/chroot-script @@ -428,6 +428,14 @@ EOF } # }}} +# set default locales {{{ +default_locales() { + if [ -n "$DEFAULT_LOCALES" ] ; then + update-locale LANG="$DEFAULT_LOCALES" + fi +} +# }}} + # adjust timezone {{{ timezone() { if [ -n "$TIMEZONE" ] ; then @@ -608,7 +616,7 @@ trap signal_handler HUP INT QUIT TERM for i in chrootmirror grmlrepos backportrepos kernelimg_conf \ kernel packages extrapackages reconfigure hosts interfaces \ - timezone fstab hostname initrd grub_install passwords \ + default_locales timezone fstab hostname initrd grub_install passwords \ custom_scripts upgrade_system remove_apt_cache services \ remove_chrootmirror; do if stage $i ; then