Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
WIP: Use host system OSTree repo as local cache
When running the image builder on Endless OS, there is a high chance that the host system will be running a similar, if not identical, OSTree commit to the one being built into the image. In my case, I run master and update essentially every morning, so running the image builder with its default arguments will use the same OSTree as is booted. `ostree pull` supports a `--localcache-repo PATH` argument: > Like git's clone --reference. Reuse the provided OSTree repo as a > local object cache when doing HTTP fetches. In this patch, we bind-mount the host's /ostree/repo into the buildroot, if it exists. The bind-mount is made read-only to reduce the risk that a bug in the image builder will mess up the host system.
- Loading branch information