mirror of
https://github.com/flatcar/scripts.git
synced 2025-08-09 05:56:58 +02:00
First let's add a chroot upgrade hook that'll declare a small list of locales to speed up glibc upgrades. The other blocker was that `cros_sdk --enter` took an inordinate amount of time to execute (`locale-gen -u` specifically) when the number of existing locales is huge. This seems to be a bug in the bash/glibc stack which is resolved in newer versions, but we can workaround the issue by forcing locale-gen to run in a C locale. The tool itself does not care about its locale and we silence its output. BUG=chromium-os:20378 TEST=`cros_sdk --enter`; see no locales in /etc/locale.gen; run `./build_packages` and see upgrade hook work TEST=generate all 400 locales; `cros_sdk --enter`; see that it was quick Change-Id: I8fcc5e26bd8e1bcfd52b6a6c7ef3cacf0a252081 Reviewed-on: http://gerrit.chromium.org/gerrit/7806 Reviewed-by: David James <davidjames@chromium.org> Reviewed-by: Zdenek Behan <zbehan@chromium.org> Commit-Ready: Mike Frysinger <vapier@chromium.org> Tested-by: Mike Frysinger <vapier@chromium.org> |
||
---|---|---|
.. | ||
1_init | ||
2_path_update | ||
3_libtool_update | ||
4_policykit_removal | ||
5_symlink_pc_update | ||
6_mobile_broadband_removal | ||
7_host_gcc_upgrade | ||
8_unmerge_gmp | ||
9_board_makeconf_setup | ||
10_default_locales |