Skip to content

feat: make rpm-ostree use containers-storage over oci-archive - #263

Merged
renner0e merged 3 commits into
ublue-os:mainfrom
MDev-Linux:main
Aug 18, 2026
Merged

feat: make rpm-ostree use containers-storage over oci-archive#263
renner0e merged 3 commits into
ublue-os:mainfrom
MDev-Linux:main

Conversation

@TheMDev

@TheMDev TheMDev commented Aug 18, 2026

Copy link
Copy Markdown
Contributor

Improves build performace on #261 by writing the image layers directly to the host container store instead of compressing to an OCI archive then decompressing before pushing to the registry.

@renner0e renner0e left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

really nice improvement overall, thanks for looking into this

seems to have gone down from 11m to 8m
https://github.com/ublue-os/image-template/actions/runs/32125672094
https://github.com/ublue-os/image-template/actions/runs/32141474535

Comment thread Justfile Outdated
--mount=type=image,src="${target_image}:${tag}",target=/rpm-ostree \
--privileged \
-v "${RPM_OSTREE_OUTPUT_DIR}:/run/out:Z" \
--mount=type=bind,src=/home/runner/.local/share/containers/storage,target=/run/host-container-storage,rw \

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

this hardcodes github's runner specific paths and wouldn't work locally, we need to determine it beforehand

this is likely what we want

podman info --format '{{ .Store.GraphRoot }}'

Comment thread Justfile
--mount=type=bind,src=/home/runner/.local/share/containers/storage,target=/run/host-container-storage,rw \
--mount=type=tmpfs,target=/run/rpm-ostree-storage \
--entrypoint /usr/bin/rpm-ostree \
"${RPM_OSTREE_CHUNKER_IMAGE}" \

@renner0e renner0e Aug 18, 2026

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

small nit, I like that we specify the image we use for rechunking with the variable above, the use case for this might be using a separate image which ships a newer/older rpm-ostree, just seems a little cleaner to me

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Forgot to revert that after my testing.

Comment thread Justfile Outdated
Co-authored-by: renner <80410025+renner0e@users.noreply.github.com>
@renner0e
renner0e enabled auto-merge (squash) August 18, 2026 16:57

@renner0e renner0e left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

thanks

@renner0e
renner0e merged commit b9783f6 into ublue-os:main Aug 18, 2026
1 check passed
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.

2 participants