diskimage-builder/elements
Ben Nemec 4e5dcdd9cf Clean more from ironic-agent ramdisk image
While we already clean a number of things off the ironic-agent
ramdisk, there are a few more significant ones that we should add
to the list.

First is the kernel source.  If you're rebuilding your kernel on
the agent ramdisk after the initial image build, then you need to
re-examine your life choices. ;-)

Second is /var/cache.  On yum-based distros, this contains a large
number of yum cache files that take up significant space.  We don't
really want to be copying around caches when booting a ramdisk
anyway, so cleaning this is the right thing to do regardless.

Third is all *.pyc or *.pyo files.  There are a lot of these, so
they eat up significant space and bloat the number of files in the
ramdisk, which makes it take longer to build.  the only purpose for
the files is to slightly speed up Python app startup, and we
probably lose more time transferring the files over the network
than we would gain in quicker start times.  Note that we were
already trying to remove these, but for some reason I was still
seeing them show up in my final images.  It makes more sense to
put them in the same pruning command as all the others anyway.

Fourth is /usr/include.  These are files only needed for
compilation.  See above for my thoughts on compiling in a ramdisk.

These changes have reduced the agent ramdisk from 391 MB to 333 MB
in my local centos 7 builds, and have reduced the number of files
in the ramdisk by over 18000.

Change-Id: I550f9904b9afd12d48da9ba24559acb23133d076
2016-06-24 13:21:32 -05: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
baremetal Add a best-effort sudo safety check 2016-05-09 15:41:38 +10:00
base Merge "Export die() function" 2016-06-07 01:00:50 +00:00
bootloader Merge "Add a best-effort sudo safety check" 2016-05-26 17:31:00 +00:00
cache-url
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 Pre-install pip/virtualenv packages 2016-06-17 09:20:57 +10:00
cleanup-kernel-initrd
cloud-init Add new cloud-init element 2016-02-01 21:03:03 -06:00
cloud-init-datasources
cloud-init-disable-resizefs Fix cloud-init-disable-resizefs README title 2016-03-01 21:49:10 -08:00
cloud-init-nocloud
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
debian-upstart
debootstrap Merge "Add cloud-initramfs-growroot for Precise" 2016-06-07 01:14:10 +00:00
deploy
deploy-baremetal
deploy-ironic deploy-ironic: Fix syntax error when checking for root device hints 2016-01-07 12:06:19 +00:00
deploy-kexec
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
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
dracut-ramdisk
dynamic-login Follow up patch for 25d3ee5471 2015-12-01 14:11:40 +00:00
element-manifest
enable-serial-console
epel Fix up EPEL element 2016-04-15 12:37:22 +10:00
fedora Remove Fedora 21 from test-build 2016-05-30 22:54:58 +02: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
hwdiscovery
ilo
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
ironic-agent Clean more from ironic-agent ramdisk image 2016-06-24 13:21:32 -05: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 Export die() function 2016-05-27 09:25:22 +10:00
manifests
mellanox
modprobe-blacklist
oat-client Add oat-client element 2015-06-26 09:57:12 +08:00
opensuse Add cinder-backup mappings 2016-06-07 14:15:47 +02:00
package-installs Add install-bin element 2016-05-13 11:52:23 +10:00
partitioning-sfdisk Merge "Export die() function" 2016-06-07 01:00:50 +00:00
pip-and-virtualenv Pre-install pip/virtualenv packages 2016-06-17 09:20:57 +10:00
pip-cache
pkg-map Move pkg-map to dib-python 2016-06-08 21:16:50 +00: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
ramdisk-base Adding InfiniBand Support 2016-02-17 04:43:29 +00:00
rax-nova-agent
redhat-common Add cinder-backup mappings 2016-06-07 14:15:47 +02: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
selinux-permissive
serial-console
simple-init Fix OpenSUSE support 2016-05-03 22:23:51 -07:00
source-repositories Merge "Cleanup source-repositories output" 2016-06-07 00:59:02 +00: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
ubuntu
ubuntu-core Add a best-effort sudo safety check 2016-05-09 15:41:38 +10:00
ubuntu-minimal
ubuntu-signed
vm Merge "Export die() function" 2016-06-07 01:00:50 +00:00
yum Add install-bin element 2016-05-13 11:52:23 +10:00
yum-minimal Merge "Export FS_TYPE and remove hardcoded ext4 values" 2016-06-07 01:01:04 +00:00
zypper