This small change builds on a new image-builder facility: the expansion of multi-valued features into lists like those used by the pkg_install and pkg_uninstall steps.
In particular, this allows an engineer to throw a handful of extra packages into an ad hoc image without needing to edit any templates; e.g.,
Note that the two -F extra_packages+=... lines add two packages to the extra_packages feature, which then gets expanded into two entries in the array at the position where the ${@extra_packages} macro appears.
NB: This PR is stacked on top of #155.
Testing Notes
I have tested this both with the above command, and also with the much simpler invocation:
This small change builds on a new image-builder facility: the expansion of multi-valued features into lists like those used by the
pkg_install
andpkg_uninstall
steps.In particular, this allows an engineer to throw a handful of extra packages into an ad hoc image without needing to edit any templates; e.g.,
Note that the two
-F extra_packages+=...
lines add two packages to theextra_packages
feature, which then gets expanded into two entries in the array at the position where the${@extra_packages}
macro appears.NB: This PR is stacked on top of #155.
Testing Notes
I have tested this both with the above command, and also with the much simpler invocation:
I confirmed in both cases that the packages showed up only when they were expected to show up.