Skip to content

Add support for specifying which locales should be copied and generated by update_chroot.sh --locales #40

@pindab0ter

Description

@pindab0ter

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions