diskimage-builder/releasenotes/notes
Ian Wienand 274be6de55 Making element overriding explicit
This is a re-factor of element_dependencies to achieve two things --
centralising override policy and storing path names.

Firstly we want to make the override policy for elements completely
explicit.  Currently, elements that wish to copy parts of other
elements walk ELEMENTS_PATH themselves and look for elements in
IMAGE_ELEMENT.  How they handle duplicate elements can differ, leading
to inconsistent behaviour.

We introduce logic in element-info to find elements in each of the
directories in ELEMENT_PATHS in *reverse* order -- that is to say,
earlier entries in the paths will overwrite later ones.

For example

 ELEMENT_PATHS=foo:bar:baz

will mean that "foo/element" will override "baz/element", since "foo"
is first.  This should be sane to anyone familiar with $PATH.
Documentation is clarified around this point and a test-case is added.

The second thing is that we want to keep the complete path of the
elements we have chosen.  We want the aforementioned elements that
walk the element list to use these canonical paths to pickup files;
this way they don't need to make local decisions about element
overrides, but can simply iterate a list and copy/merge files if they
exist.

A follow-on change (I7092e1845942f249175933d67ab121188f3511fd) will
expose this data in a separate variable that can be parsed by elements
(a further follow-on I0a64b45e9f2cfa28e84b2859d76b065a6c4590f0
modifies the elements to use this information).  Thus this does not
change the status-quo -- elements that are walking ELEMENTS_PATH
themselves and can/will continue doing that.

Change-Id: I2a29861c67de2d25c595cb35d850e92807d26ac6
2016-09-08 10:58:19 +10:00
..
1.16.0-updates-bad91fc0b36c1755.yaml Add 1.16.0 releasenotes 2016-05-16 11:09:39 +10:00
1.17.0-ef744f36d277dba4.yaml Release notes for 1.17.0 2016-06-07 10:57:10 +10:00
1.18.0-4433d3076627f10d.yaml Release notes for 1.18 2016-06-28 09:20:21 +10:00
1.18.1-ceeb514708dcb731.yaml Add 1.18.1 releasenotes 2016-07-05 22:17:50 +00:00
element-override-ccda78c24ab4a4ff.yaml Making element overriding explicit 2016-09-08 10:58:19 +10:00
package-install-arch-38bb5a6e61794fa5.yaml package-installs: add list to arch and "not-arch" list 2016-07-01 21:31:59 +02:00
start-using-reno-446b3d52a467a273.yaml Add releasenotes 2016-04-21 13:19:53 +10:00