diskimage-builder/elements/dpkg
Ben Nemec 381ff6ab1d Fix set -eu and pipefail failures
Fixes problems found by set -eu and pipefail, including:
-Many unset variables
-Commands that can fail under normal circumstances, which breaks
with set -e.  This change swallows those expected errors to allow
our existing error code to handle them.
-The dkms element was not finding Fedora kernel versions correctly.
This may be an issue for other distros too, but since Fedora was
working fine without this functionality I only changed it to print
a warning message rather than failing the build when it happens.
-The ramdisk init script will not be set -eu because if it fails
the result is a kernel panic, which can be tricky to debug.
However, in testing with set -e a few failing commands were found
and have been fixed in this patch.

Change-Id: I44cf98dfc80cfcaec54b88cc83be80a3dbf2cec3
2014-04-15 20:53:15 -05:00
..
bin Fix set -eu and pipefail failures 2014-04-15 20:53:15 -05:00
cleanup.d Standardise manifest creation and retrieval 2014-04-10 12:25:13 +01:00
post-install.d Standardise manifest creation and retrieval 2014-04-10 12:25:13 +01:00
pre-install.d /bin/bash all the things. 2013-11-17 16:59:31 -06:00
root.d Fix set -eu and pipefail failures 2014-04-15 20:53:15 -05:00
element-deps Standardise manifest creation and retrieval 2014-04-10 12:25:13 +01:00
README.md Move the dpkg specific stuff to a dpkg element rather than being hardcoded. 2013-02-14 11:16:12 +13:00

Provide dpkg specific image building glue.

The ubuntu element needs customisations at the start and end of the image build process that do not apply to RPM distributions, such as using the host machine HTTP proxy when installing packages. These customisations live here, where they can be used by any dpkg based element.

The dpkg specific version of install-packages is also kept here.