Repository navigation
LBIs for ComposeFS backend - #2679
Merged
Merged
Conversation
Similar to what we have for ostree, introduce `new_composefs_from_state` which creates a composefs store during installations. This is in prep for pulling logically bound images into bootc owned containers storage Signed-off-by: Pragyan Poudyal <pragyanpoudyal41999@gmail.com>
Johan-Liebert1
requested review from
cgwalters
and
a balanced review from Copilot
November 23, 2026 05:48
Johan-Liebert1
force-pushed
the
composefs-lbi
branch
2 times, most recently
from
November 23, 2026 09:44
af69507 to
26324f9
Compare
Member
Author
|
ping @jmarrero |
Johan-Liebert1
force-pushed
the
composefs-lbi
branch
from
November 23, 2026 13:53
26324f9 to
5748bfa
Compare
Member
Author
|
Had missed UKI testing for LBIs. Fixed |
This was referenced Nov 24, 2026
cgwalters
requested changes
Nov 24, 2026
| { "bound": true, "image": "registry.access.redhat.com/ubi9/ubi-minimal:9.4", "name": "ubi-minimal" }, | ||
| # Don't use a fully qualified path to test https://github.com/bootc-dev/bootc/issues/2640 | ||
| # NOTE: Not using a tagged image here as that could lead to flakes | ||
| { "bound": true, "image": "nginx:1.31.9-alpine-slim", "name": "nginx" }, |
Member
There was a problem hiding this comment.
Ah okay but why not have the test as part of the prior commit?
This particular image feels kind of...random. It seems more reliable to use...really any image via shorname which could just be e.g. fedora or ubuntu or busybox?
Member
Author
There was a problem hiding this comment.
Done in #2693. Combined the two commits and using busybox now.
| tracing::debug!("bound_images: {images:?}"); | ||
| live_bound_images.extend(images.iter().map(|i| i.image.clone())); | ||
| } | ||
| // This is so ugly, but some aboot tests run without initializing a repo |
Member
There was a problem hiding this comment.
Shouldn't we just fix those tests?
Member
Author
There was a problem hiding this comment.
Unfortunately it's not an integration test, just a normal one, and it does require EROFS images. Fixing the tests would require pulling in an entire repo
Remove the restriction on LBIs with composefs backend making sure to pull any LBIs found in the container image. Similar to what the ostree backend does, selabel the bootc owned container storage with accordance to labels found in `/var/lib/containers/storage` Ref: bootc-dev#2540 Signed-off-by: Pragyan Poudyal <pragyanpoudyal41999@gmail.com>
Go through all live deployments and make sure we add all found bound images in live images so that they're not garbage collected Signed-off-by: Pragyan Poudyal <pragyanpoudyal41999@gmail.com>
Signed-off-by: Pragyan Poudyal <pragyanpoudyal41999@gmail.com>
Signed-off-by: Pragyan Poudyal <pragyanpoudyal41999@gmail.com>
Johan-Liebert1
force-pushed
the
composefs-lbi
branch
3 times, most recently
from
November 25, 2026 08:35
19a8ef3 to
32f2322
Compare
Some aboot GC tests run without ever initializing a repository which ended up failing during GC where we query LBIs expecting the EROFS image to exist. Fix by downcasting the error to `ImageNotFound` and simply continuing if the downcast was successful Signed-off-by: Pragyan Poudyal <pragyanpoudyal41999@gmail.com>
Johan-Liebert1
force-pushed
the
composefs-lbi
branch
from
November 25, 2026 08:38
32f2322 to
93a1a5a
Compare
cgwalters
enabled auto-merge (rebase)
November 25, 2026 15:04
cgwalters
approved these changes
Nov 25, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.


Requires: #2693
store: Create non booted composefs store
Similar to what we have for ostree, introduce
new_composefs_from_statewhich creates a composefs store during installations. This is in prep
for pulling logically bound images into bootc owned containers storage
cfs: Pull logically bound images
Remove the restriction on LBIs with composefs backend making sure to
pull any LBIs found in the container image. Similar to what the ostree
backend does, selabel the bootc owned container storage with accordance
to labels found in
/var/lib/containers/storageRef: #2540
cfs/lbi: Pull LBIs on update/switch
Closes: #2540