Clean environment prevents builds from resuming
Commit bc89a0a2 fixed an issue where packages that were installed either by default in the RC2 image, or which were installed during a previous run, contaminated future runs.
Using apk fix
to restore the world to a minimal state, before using apk add
, unmasked the error.
Specifically, apk add
(or apk fix
when used in an additive manner) will not ensure that already-installed packages are still available, and therefore will cause future invocations of the script fail because the packages ccache
and pigz
cannot be installed as they are not part of the system/
repository.
If contamination is to be avoided, the only bootstrap packages that can be installed are those that are available after the first pass of system/
. These tools will also need to be present in the original rootfs image used for bootstrapping.