diskimage-builder/elements/apt-conf
Stuart McLaren 06ccb7484f apt-conf: uninitialised variables fix
In the bash script "99-override-default-apt-conf" 'set -u'
is being used to check for uninitialised variables.

This resulted in generic 'unbound variable' messages rather
than the intended error messages.

Tweaked the check for DIB_APT_CONF to work if the variable is unbound;
so that we get the intended error message rather than the `unbound
variable` message.

Change-Id: Ib8e287060f32312ab80dd7f44e2792ecca48edbb
2014-04-09 09:12:31 +02:00
..
extra-data.d apt-conf: uninitialised variables fix 2014-04-09 09:12:31 +02:00
README.md Enable custom apt.conf in apt-conf element 2014-02-26 19:10:23 +00:00

Override the default apt.conf

For APT based systems, if you require specific options for apt operations, you can define DIB_APT_CONF with your favorite apt.conf to override it, before running devtest.sh.

The new apt.conf will take effect at build time and run time.

If you want to use this element with tripleo-incubator scripts, set NODE_DIST / SEED_DIB_EXTRA_ARGS / UNDERCLOUD_DIB_EXTRA_ARGS / OVERCLOUD_CONTROL_DIB_EXTRA_ARGS / OVERCLOUD_COMPUTE_DIB_EXTRA_ARGS to make it take effect at the appropriate time.

For instance, before running devtest.sh:

export DIB_APT_CONF=/etc/apt/apt.conf
export NODE_DIST="ubuntu apt-conf"