Skip to content

client: Respect CONTAINERS_GRAPHROOT and CONTAINERS_RUNROOT - #2645

Merged
achilleas-k merged 1 commit into
osbuild:mainfrom
alexlarsson:override-graphroot
Sep 4, 2026
Merged

achilleas-k merged 1 commit into
osbuild:mainfrom
alexlarsson:override-graphroot

Conversation

@alexlarsson

Copy link
Copy Markdown
Contributor

These are set by podman unshare when in a rootless mode so that e.g. podman will pick up ~/.local/share/container/storage instead of /var/lib/container/storage even though uid is 0 in the unshare.

It is also a useful way to make image-builder use a custom container storage.

This matches what osbuild already does since:
osbuild/osbuild#2550

These are set by podman unshare when in a rootless mode so that
e.g. podman will pick up ~/.local/share/container/storage instead
of /var/lib/container/storage even though uid is 0 in the unshare.

It is also a useful way to make image-builder use a custom container
storage.

This matches what osbuild already does since:
 osbuild/osbuild#2550

Also, if this is set, don't assume we're using /var/lib/containers/storage
if in a rootless container.
@achilleas-k
achilleas-k added this pull request to the merge queue Sep 4, 2026
Merged via the queue into osbuild:main with commit de01480 Sep 4, 2026
54 checks passed
codelinaro-mirror-sync Bot pushed a commit to CodeLinaro-mirror/le_centos_automotive_src_automotive-image-builder that referenced this pull request Sep 9, 2026
With osbuild/image-builder#2645
and osbuild/osbuild#2550 we
can now use CONTAINERS_GRAPHROOT/CONTAINERS_RUNROOT to override
the container storage for image-builder and osbuild.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants