Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
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. On my developer system & internet connection (80 Mbps according to fast.com), in the case where my system repo has the latest commit but the eos-image-builder cache repo does not, the pull takes 15 seconds with this patch. Without it, the pull takes, let's say, substantially longer. I gave up after 10 minutes, after which time 26% of objects have been pulled, topping out at around 900 kB/s.
- Loading branch information