diskimage-builder/elements
Ian Wienand f5dff9c52a Rework yum-minimal locale cleanup
It turns out our manual locale cleanup is causing issues (see
I54490b17a7f8b2f977369044fcc6bb49cc13768e).  Upon further
investigation, I think this is a better approach than manually
deleting repos.

glibc on Fedora obeys the %_install_langs macro for reducing the
installed locales (as mentioned in the comments, F24 has moved to
having different packages, but worry about that later).

So our existing clear-out is really only required for CentOS, whose
glibc does not have any way to indicate to build less locales.
However, %_install_langs is still correct there, as it restricts some
of the translation files and other things installed with the %lang
macro in spec files.

This is complicated by us having to set this at glibc-common install
time, which happens with the "yum" from outside the chroot (i.e. on
trusty).  Since this is too old to have flags to pass this, we need to
fiddle with rpmmacros.

I've tested this with fedora-minimal builds and the locales file is
about 2MiB, which is what it was after the cleanups, and the listed
locales are only those we expect (i.e. it appears to be working).

Change-Id: I528a68beeb7b2ceec25ccbec1900670501608158
2016-05-31 15:14:24 +10:00
..
apt-conf Update apt-conf elements README from free text to table formatting 2015-10-08 17:12:46 -07:00
apt-preferences Update apt-preferences element README from free text to table formatting 2015-10-08 17:14:16 -07:00
apt-sources Add a best-effort sudo safety check 2016-05-09 15:41:38 +10:00
architecture-emulation-binaries Standarise tracing for scripts 2015-02-12 10:41:32 +11:00
baremetal Add a best-effort sudo safety check 2016-05-09 15:41:38 +10:00
base Remove deprecated overriding of cloud-init defaults 2016-05-23 17:44:32 +02:00
bootloader Merge "Add a best-effort sudo safety check" 2016-05-26 17:31:00 +00:00
cache-url Standarise tracing for scripts 2015-02-12 10:41:32 +11:00
centos Change to latest CentOS-6 image 2016-04-20 10:44:09 -07:00
centos7 Merge "Add centos7 test" 2016-05-16 21:43:28 +00:00
centos-minimal centos-minimal: can be used with base 2016-05-16 13:36:55 +10:00
cleanup-kernel-initrd Standarise tracing for scripts 2015-02-12 10:41:32 +11:00
cloud-init Add new cloud-init element 2016-02-01 21:03:03 -06:00
cloud-init-datasources Simple-init should disable cloud-init 2015-05-11 16:55:02 +00:00
cloud-init-disable-resizefs Fix cloud-init-disable-resizefs README title 2016-03-01 21:49:10 -08:00
cloud-init-nocloud Standarise tracing for scripts 2015-02-12 10:41:32 +11:00
debian Fix apt-sources configuration for debian-minimal 2016-05-13 09:26:49 +02:00
debian-minimal Fix apt-sources configuration for debian-minimal 2016-05-13 09:26:49 +02:00
debian-systemd Standarise tracing for scripts 2015-02-12 10:41:32 +11:00
debian-upstart Standarise tracing for scripts 2015-02-12 10:41:32 +11:00
debootstrap Fix apt-sources configuration for debian-minimal 2016-05-13 09:26:49 +02:00
deploy Create docs site containing element READMEs 2015-02-10 11:45:35 -08:00
deploy-baremetal Create docs site containing element READMEs 2015-02-10 11:45:35 -08:00
deploy-ironic deploy-ironic: Fix syntax error when checking for root device hints 2016-01-07 12:06:19 +00:00
deploy-kexec Create docs site containing element READMEs 2015-02-10 11:45:35 -08:00
deploy-targetcli Optimize Python install in deploy-targetcli 2015-06-22 13:19:14 -05:00
deploy-tgtadm No markdown docs for elements 2015-04-02 23:55:19 +00:00
devuser Fix devuser pubkey defaults 2015-10-13 17:54:09 -07:00
dhcp-all-interfaces Merge "Add dhcp-all-interfaces.target for syncing units" 2016-05-18 19:39:10 +00:00
dib-init-system Depend on ifupdown in simple-init 2016-02-20 08:19:21 -06:00
dib-python Fix spurious = in dib-python readme 2016-03-07 04:47:35 +00:00
dib-run-parts/root.d dib-run-parts: make cp to target root more robust 2016-04-05 16:29:57 +02:00
disable-selinux/post-install.d Standarise tracing for scripts 2015-02-12 10:41:32 +11:00
dkms Make dkms element depend on dkms package 2015-12-26 22:07:19 +00:00
docker Add base element for using docker as image base 2015-07-19 10:23:34 +00:00
dpkg Merge "Add a best-effort sudo safety check" 2016-05-26 17:31:00 +00:00
dracut-network Standarise tracing for scripts 2015-02-12 10:41:32 +11:00
dracut-ramdisk Make troubleshoot work with dracut ramdisks 2015-04-08 12:54:32 -05:00
dynamic-login Follow up patch for 25d3ee5471 2015-12-01 14:11:40 +00:00
element-manifest Standarise tracing for scripts 2015-02-12 10:41:32 +11:00
enable-serial-console Standarise tracing for scripts 2015-02-12 10:41:32 +11:00
epel Fix up EPEL element 2016-04-15 12:37:22 +10:00
fedora Remove zero length files 2016-01-20 19:08:54 -05:00
fedora-minimal Remove fedora-minimal/install.d/99-ramdisk 2015-11-19 21:03:45 +11:00
gentoo Add install-bin element 2016-05-13 11:52:23 +10:00
growroot Merge "Refactor growroot for debuggabilty" 2016-03-12 19:04:22 +00:00
grub2 Merge "Allow grub2 to build with opensuse" 2015-12-16 01:25:10 +00:00
hpdsa Add a new element hpdsa 2015-12-10 20:12:14 +00:00
hwburnin Create docs site containing element READMEs 2015-02-10 11:45:35 -08:00
hwdiscovery Create docs site containing element READMEs 2015-02-10 11:45:35 -08:00
ilo Standarise tracing for scripts 2015-02-12 10:41:32 +11:00
install-bin Add install-bin element 2016-05-13 11:52:23 +10:00
install-static Install-static depends on rsync 2015-08-17 16:21:09 +00:00
install-types Break install-types out of base 2015-04-14 13:39:18 -04:00
ironic-agent Merge "Add a best-effort sudo safety check" 2016-05-26 17:31:00 +00:00
ironic-discoverd-ramdisk Mark ironic-discoverd-ramdisk as deprecated in favor of ironic-agent 2016-02-01 16:47:37 +01:00
iso Add a best-effort sudo safety check 2016-05-09 15:41:38 +10:00
local-config Add openssh-server package-install to local-config 2015-12-07 15:23:00 -05:00
manifests Standarise tracing for scripts 2015-02-12 10:41:32 +11:00
mellanox Standarise tracing for scripts 2015-02-12 10:41:32 +11:00
modprobe-blacklist Standarise tracing for scripts 2015-02-12 10:41:32 +11:00
oat-client Add oat-client element 2015-06-26 09:57:12 +08:00
opensuse Add install-bin element 2016-05-13 11:52:23 +10:00
package-installs Add install-bin element 2016-05-13 11:52:23 +10:00
partitioning-sfdisk Add a best-effort sudo safety check 2016-05-09 15:41:38 +10:00
pip-and-virtualenv add pkg-map to pip-and-virtualenv element 2016-03-21 20:12:37 -05:00
pip-cache Standarise tracing for scripts 2015-02-12 10:41:32 +11:00
pkg-map Print unparsable file in pkg-map 2016-01-14 16:21:25 +11:00
proliant-tools Install proliantutils in IPA's virtualenv 2016-05-02 01:56:26 -07:00
pypi Add a best-effort sudo safety check 2016-05-09 15:41:38 +10:00
ramdisk Merge "Add element ubuntu-signed to provide signed kernel" 2015-04-28 11:02:44 +00:00
ramdisk-base Adding InfiniBand Support 2016-02-17 04:43:29 +00:00
rax-nova-agent rax-nova-agent: switch to $DISTRO_NAME 2015-05-12 17:48:49 +02:00
redhat-common Use dnf to cleanup old kernels 2016-02-08 14:20:56 +11:00
rhel Add a best-effort sudo safety check 2016-05-09 15:41:38 +10:00
rhel7 Revert "Correct rhel-common for rhel6" 2016-02-17 22:17:11 +00:00
rhel-common Revert "Correct rhel-common for rhel6" 2016-02-17 22:17:11 +00:00
rpm-distro Move selinux restore to end of finalise 2016-04-20 13:52:37 +10:00
select-boot-kernel-initrd Standarise tracing for scripts 2015-02-12 10:41:32 +11:00
selinux-permissive Standarise tracing for scripts 2015-02-12 10:41:32 +11:00
serial-console Standarise tracing for scripts 2015-02-12 10:41:32 +11:00
simple-init Fix OpenSUSE support 2016-05-03 22:23:51 -07:00
source-repositories Add a best-effort sudo safety check 2016-05-09 15:41:38 +10:00
stable-interface-names Standarise tracing for scripts 2015-02-12 10:41:32 +11:00
svc-map Initial add of gentoo support for diskimage-builder 2016-01-12 19:15:00 -06:00
uboot Standarise tracing for scripts 2015-02-12 10:41:32 +11:00
ubuntu Set DIB_RELEASE in ubuntu element 2015-03-04 23:11:27 +00:00
ubuntu-core Add a best-effort sudo safety check 2016-05-09 15:41:38 +10:00
ubuntu-minimal Split the debootstrap functions into an element 2015-04-26 18:04:59 +00:00
ubuntu-signed Add element ubuntu-signed to provide signed kernel 2015-04-12 11:36:17 -07:00
vm Add a best-effort sudo safety check 2016-05-09 15:41:38 +10:00
yum Add install-bin element 2016-05-13 11:52:23 +10:00
yum-minimal Rework yum-minimal locale cleanup 2016-05-31 15:14:24 +10:00
zypper Standarise tracing for scripts 2015-02-12 10:41:32 +11:00