Skip to content

install/flat: Use composefs pipeline for rootfs#2028

Open
ericcurtin wants to merge 1 commit intobootc-dev:mainfrom
ericcurtin:bootc-flat
Open

install/flat: Use composefs pipeline for rootfs#2028
ericcurtin wants to merge 1 commit intobootc-dev:mainfrom
ericcurtin:bootc-flat

Conversation

@ericcurtin
Copy link
Contributor

@ericcurtin ericcurtin commented Feb 27, 2026

--flat install implementation will go through the composefs
repository. This gives several advantages:

  • SELinux labeling is handled by composefs-rs (selabel), which applies
    labels from the image's file_contexts rather than inheriting the
    running container's labels.
  • The kernel installation flow is reused from composefs-rs
    (get_boot_resources / UsrLibModulesVmlinuz).
  • The composefs repo is preserved at /sysroot/composefs, making it
    easy to convert to immutable/bootc mode later. Users who don't want
    the metadata overhead can rm -rf /sysroot/composefs.
  • write_to_path supports reflink copies on btrfs/XFS, sharing blocks
    with the composefs object store.
  • --source-imgref now works with --flat (the in_host_mountns guard is
    removed since we pull via the image reference, not via cp /).

Loading
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

area/documentation Updates to the documentation area/install Issues related to `bootc install`

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants