As it is now, update_root.sh’s --locales flag copies every locale.
$ du -ch /var/www/vhosts/chroot/usr/{share/i18n,share/locale,lib/locale} | grep total
223M total
Multiply this by hundreds of subscriptions and the disk usage racks up quite a bit.
By adding support for specifying which locales should be copied, any locale not specified will not be copied and generated, reducing disk usage by locales in chrooted environments by an approximated 80 to 90%, if not more, depending on how many locales you specify.
I would like to be able to run update_root.sh --locales en_US de_DE fr_FR or something along those lines to specify which locales should be available in the chrooted environments.