1
0
Fork 1
mirror of https://gitlab.postmarketos.org/postmarketOS/pmbootstrap.git synced 2025-07-13 03:19:47 +03:00

pmb.helpers.apk: support PMB_APK_NO_CACHE

Add a new environment variable that disables apk's caching feature for
space constrained environments such as the bpo image build jobs.

Currently we have a workaround in place in bpo: the apk cache is moved
to a tmpfs. But this is fragile and just disabling the apk cache is a
more elegant solution.

I've decided to make this an env var instead of a full pmbootstrap
option since this option is not relevant for normal users, only for CI
jobs in space constrained environments. Also we already have another
`PMB_APK_` env var.

Related: bpo issue 136
Part-of: https://gitlab.postmarketos.org/postmarketOS/pmbootstrap/-/merge_requests/2553
This commit is contained in:
Oliver Smith 2025-02-16 16:27:41 +01:00
parent dcc4137ee8
commit 4bf3f11b78
No known key found for this signature in database
GPG key ID: 5AE7F5513E0885CB
2 changed files with 16 additions and 3 deletions

View file

@ -14,6 +14,11 @@ APKINDEX results in a 404 not found error. This is used by
the first time. For example if the `x86_64` repository was already built and
published, but the `aarch64` repository wasn't published yet.
## `PMB_APK_NO_CACHE`
When this is set to `1`, pmbootstrap will disable apk's caching feature. This
is used by bpo for image build jobs, so these jobs don't need as much space.
## `PMB_FDE_PASSWORD`
This variable can be used to set the password when running `install --fde`. The