diskimage-builder/elements/package-installs
Abel Lopez da7787069d Ignore stderr from pkg-map
The latest update to package-install captures both stderr and stdout
from pkg-map, unfortunately, pkg-map has a 'missing-ok' option
which causes it to print an error message on stderr.
The result is that package-install tries to look for packages named
"Missing", "package", "name", etc.

Change-Id: I86b3b71a64b29d533b42fd0cae020e8ecf22cac2
Closes-bug: 1402085
2014-12-17 10:08:08 -08:00
..
bin Ignore stderr from pkg-map 2014-12-17 10:08:08 -08:00
extra-data.d Rework package-installs to collapse on build host 2014-12-11 00:05:32 -08:00
install.d Rework package-installs to collapse on build host 2014-12-11 00:05:32 -08:00
post-install.d Rework package-installs to collapse on build host 2014-12-11 00:05:32 -08:00
pre-install.d Rework package-installs to collapse on build host 2014-12-11 00:05:32 -08:00
element-deps package-installs for pre-install.d/post-install.d 2014-08-14 21:18:19 -04:00
README.rst Add new package-installs system 2014-12-01 21:29:47 -08:00

The package-installs element allows for a declarative method of installing and
uninstalling packages for an image build. This is done by creating a
package-installs.yaml or package-installs.json file in the element directory.


example package-installs.yaml:
libxml2:
grub2:
  phase: pre-install.d
networkmanager:
  uninstall: True

example package-installs.json:
{
  "libxml2": null,
  "grub2": {"phase": "pre-install.d"},
  "networkmanager": {"uninstall": true}
}


Setting phase or uninstall properties for a package overrides the following
default values:

phase: install.d
uninstall: False


DEPRECATED: Adding a file under your elements pre-install.d, install.d, or
post-install.d directories called package-installs-<element-name> will cause
the list of packages in that file to be installed at the beginning of the
respective phase.  If the package name in the file starts with a "-", then
that package will be removed at the end of the install.d phase.