diskimage-builder/elements/ramdisk
Robert Collins 4319730357 Add a ramdisk-install.d hook path.
We need to be able to do install.d like things for ramdisks
themselves, but install.d runs outside the ramdisk context - and its
likely to break peoples brains if we mangle the two together - so this
adds a new hook point, ramdisk-install, specifically for installing
things into the ramdisk.

Change-Id: I37d1660309cda6e28bd0b316b08f61db4e080613
2014-07-16 19:23:50 +12:00
..
cleanup.d Ensure we can read the kernel out. 2014-05-14 04:25:05 +12:00
extra-data.d Optimizing directory creation. 2014-07-08 09:39:58 -07:00
init.d Add missing dollar 2014-06-04 14:17:22 +01:00
install.d Use $DISTRO_NAME instead of local lsb_release 2014-06-26 16:47:21 -04:00
post-install.d Add a ramdisk-install.d hook path. 2014-07-16 19:23:50 +12:00
README.md Reinstate Trusty as default for Ubuntu 2014-06-03 16:28:25 -07:00

This is the ramdisk element.

Almost any user building a ramdisk will want to include this in their build, as it triggers many of the vital functionality from the basic diskimage-builder libraries (such as init script aggregation, busybox population, etc).

An example of when one might want to use this toolchain to build a ramdisk would be the initial deployment of baremetal nodes in a TripleO setup. Various tools and scripts need to be injected into a ramdisk that will fetch and apply a machine image to local disks. That tooling/scripting customisation can be easily applied in a repeatable and automatable way, using this element.

NOTE: ramdisks require 1GB minimum memory on the machines they are booting.

See the top-level README.md of the project, for more information about the mechanisms available to a ramdisk element.