diskimage-builder/elements/apt-sources
Ian Wienand ff79dc9793 Catch errors in DIB_INIT_SYSTEM export
When you source a file that just does

 export FOO=$(bar)

you miss any invalid return codes from "bar" (even under -e) because
bash returns the value of the "export", which is 0

On centos-minimal, we stopped bringing in systemd early and this was
causing dib-init-system to not know what init was available.  Since it
did not fail correctly, it lead to confusing errors much later in the
build when service files were not copied correctly.  See also
I24ce648485c3d6f3c27ab8f87a638516b3727017

A dib-lint check is added.  One minor fixup is in 00-set-apt-sources
(this one is less likely to cause problems).  I have run dib-lint over
project-config elements and none use this pattern.

Change-Id: I076c08190d40c315ad6a6d96a3823e9fc52630be
2016-11-23 23:03:50 +00:00
..
extra-data.d Add a best-effort sudo safety check 2016-05-09 15:41:38 +10:00
test-elements/test-sources Catch errors in DIB_INIT_SYSTEM export 2016-11-23 23:03:50 +00:00
README.rst Improved apt-sources README 2015-04-07 23:05:38 +00:00

apt-sources

Specify an apt sources.list file which is used during image building and then remains on the image when it is run.

Environment Variables

DIB_APT_SOURCES
Required

No

Default

None (Does not replace sources.list file)

Description

Path to a file on the build host which is used in place of /etc/apt/sources.list

Example

DIB_APT_SOURCES=/etc/apt/sources.list will use the same sources.list as the build host.