diskimage-builder/releasenotes/notes/pre-finalise-stage-574ae7886274bcba.yaml
Ian Wienand fadf99af05 Add a pre-finalise.d phase
In exploring Gentoo caching, it was realised that we have no way to
bind mount the cache into the finalised image for the finalise.d
phases.

By adding a pre-finalise.d phase that runs outside the chroot, we can
mount outside things into the hierarchy at $TMP_BUILD_DIR/mnt which
are then seen by the in-chroot finalise.d phase.

This is similar to the pre-install phase

Change-Id: I9d782994843383ddf90f62c40498af9925fd9558
2018-10-15 12:45:23 +11:00

9 lines
346 B
YAML

---
features:
- |
A ``pre-finalise`` stage is added that runs outside the chroot and
before the ``finalise`` stage. For example, this may be useful
for mounting external resources that are used inside the chroot
during the ``finalise`` stage, but do not need to be distributed
in the final image such as build-time caches.