diskimage-builder/bin
Ben Nemec e49d347ba9 Generalize logic for skipping final image generation
Since the ironic-agent element builds the ramdisk and extracts the
kernel itself, there's no need to actually generate an image at the
end of the process.  Previously the unnecessary image was being
deleted, but this wastes a bunch of time compressing and converting
the image.  It's better to just not create the image at all.

This change adds a noop element called no-final-image that
disk-image-create looks for in the element list and, if found, will
cause it to skip the final image generation.  This is more flexible
than the previous ironic-agent-specific method that would have
required changes to disk-image-create for every element that wanted
to behave similarly.

Note that this cannot be done using an environment variable, because
element environments.d entries do not propagate out to
disk-image-create.  It also doesn't make sense as a user option
because it should be set by the element author, not the user.

Change-Id: I168feb18f0d578b3babbe4784d3ef75e755e1ebd
2016-07-28 13:14:36 -05:00
..
dib-lint Merge "Handle file magic type varying order matching" 2016-06-07 01:00:57 +00:00
disk-image-create Generalize logic for skipping final image generation 2016-07-28 13:14:36 -05:00
diskimage_builder Add a simple implementation of element dependency 2013-01-23 16:04:20 -08:00
element-info Use env python 2014-12-08 13:42:16 -08:00
ramdisk-image-create Build ramdisks in an image chroot. 2013-07-12 11:09:35 +01:00