~rcj/livecd-rootfs/+git/livecd-rootfs:feature/explicit_artifacts-disco

Last commit made on 2019-08-29
Get this branch:
git clone -b feature/explicit_artifacts-disco https://git.launchpad.net/~rcj/livecd-rootfs/+git/livecd-rootfs
Only Robert C Jennings can upload to this branch. If you are Robert C Jennings please log in for upload directions.

Branch merges

Branch information

Name:
feature/explicit_artifacts-disco
Repository:
lp:~rcj/livecd-rootfs/+git/livecd-rootfs

Recent commits

be0b42c... by Robert C Jennings

ubuntu-cpc: use sys.exit() rather than quit()

4a78662... by Robert C Jennings

ubuntu-cpc: remove unused final.binary hook support

Right now this is a solution looking for a problem as the implementation
no longer relies on it.

740c6ab... by Robert C Jennings

ubuntu-cpc: rework image artifact cleanup

The livecd.ubuntu-cpc.ext4 that is present in each build (plus kernel
and initrd) are not renamed from /build/binary/boot/filsystem.ext4
and friends until after the binary hooks are run, so this patch moves
from trying to perform this cleanup in a binary hook. Now the cleanup
will be run at the end of live-build/binary for the ubuntu-cpc project.

0d56c46... by Robert C Jennings

ubuntu-cpc: Only produce explicitly named artifacts (LP: #1837254)

In parallel builds where a list of image targets are provided the build
may produce binaries that are not part of the named set of targets but
are created by series dependencies. These implicitly created binaries
may be generated by multiple builds but are unused as our convention for
the ubuntu-cpc project is to only consume binaries from the explicitly
named image targets; this avoid overwriting the same object by multiple
parallel builds.

This patch adds support for a 'provides' keyword for series files. It can
be specified multiple times per series file. The field is used by the
make-hooks script to generate a list of output files created explicitly by
the named image targets. The list is saved to the "explicit_provides"
file in the hooks output directory. In the case of the "all" target
this list would be empty. This list is consumed by the "final.binary"
hook file.

This patch adds support for optional final.binary hooks in hooks.d/base
and/or hooks.d/extra. These final.binary hooks are always included as
the last hook(s) if either exist with the hook in "extra" running last.

The base/final.binary hook includes logic to parse the "explicit_provides"
file generated by the make-hooks script and remove any binary output not
explicitly specified.

Some series files named unnecessary dependencies, specifically
disk-image, to keep output of implicit artifacts consistent between
parallel builds. These unnecessary dependencies are removed in this
patch.

e00b7fa... by Tobias Koch

Add retry logic to snap-tool to make downloads more resilient

LP: #1837871

5a088d5... by Iain Lane

Update changelog to fix c+p fail

0d54091... by Iain Lane

Finalise changelog

e81e8e5... by Iain Lane

Update changelog

b7e6aee... by Iain Lane

live-build/functions: Seed core again on non-minimized builds

This is apparently still required; without it snapd gives an error
message like:

  stateengine.go:102: state ensure error: devicemgr: cannot proceed without seeding "core"

(cherry picked from commit 7f07cc899192b33c0eded30ffa514a6581df046e)

2dbda09... by Michael Vogt

Run "snap debug validate-seed" to do basic validation of the generated seed.yaml

(cherry picked from commit b208ded59ea9e54ad42bd071a39cebe2e4809aa4)

Signed-off-by: Iain Lane <email address hidden>