Skip to content

install: Add explicit offline deployment mount API - #2483

Merged
cgwalters merged 2 commits into
bootc-dev:mainfrom
cgwalters-bot:feature/offline-mount-api
Sep 28, 2026
Merged

cgwalters merged 2 commits into
bootc-dev:mainfrom
cgwalters-bot:feature/offline-mount-api

Conversation

@cgwalters-bot

@cgwalters-bot cgwalters-bot commented Sep 21, 2026 •

Copy link
Copy Markdown
Contributor

Post-install tooling needs a backend-neutral way to inspect and modify an offline deployment without exposing backend-specific paths through bootc status. This extracts the mount API work from the composefs stabilization series and makes it standalone on current main.

The reduced API adds bootc install mount --latest for OSTree and native composefs targets. --latest is required even though exactly one deployment is supported for now, so that selecting among several can be added later without changing existing invocations. The deployment root remains read-only; /etc and /var are writable unless --read-only is given, and are set up the way the boot-time root setup would (e.g. a transient /etc). A separate /var filesystem is not looked up; callers mount it themselves. Mounts remain in the caller's namespace, and callers clean them up with umount -R or by ending that namespace. Partial assembly failures reuse the existing recursive-unmount helper.

Composefs mounting opens the existing repository directly, follows its durable fs-verity policy, and does not implicitly initialize or upgrade repository metadata.

The docs now point to-filesystem and to-existing-root users at bootc install mount instead of ostree admin --print-current-dir, which only works for OSTree.

Status

The earlier review fixups are now squashed into @cgwalters' two commits, which both changed (his author and Signed-off-by kept): install: Simplify offline deployment mounting (code, --latest) and docs: Match offline mount guidance to caller cleanup (docs, plan 23). Base unchanged.

Testing

Run on a 16-core RHEL 10 devspace at the head commit:

  • just validate
  • just unit-tests
  • just test-tmt install-outside-container (plan 23), which covers bootc install mount without --latest (rejected), --read-only and default writable behavior, transient /etc, and persistence:
    • OSTree (grub)
    • composefs with systemd-boot and UKI
    • composefs with grub and BLS

This change is larger than 500 lines and should get explicit maintainer design review before it is marked ready.

Assisted-by: AI
Unit and integration tests are LLM generated.

Generated-by: https://github.com/cgwalters/#llms

@github-actions github-actions Bot added area/install Issues related to `bootc install` area/documentation Updates to the documentation labels Sep 21, 2026
@bootc-bot
bootc-bot Bot requested a review from cgwalters September 21, 2026 15:34
Comment thread crates/mount/src/mount.rs Resolved
Comment thread crates/mount/src/mount.rs Resolved
Comment thread crates/initramfs/src/lib.rs Resolved
Comment thread crates/initramfs/src/lib.rs Resolved
Comment thread crates/lib/src/mount.rs Resolved
Comment thread docs/src/man/bootc-install-unmount.8.md Resolved
Comment thread crates/lib/src/mount.rs Resolved
Comment thread crates/lib/src/mount.rs Outdated
Ok(current)
}

fn open_optional_dir_nofollow(parent: &Dir, path: &Path) -> Result<Option<Dir>> {

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.

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.

Done in c8122c1: backend detection now uses open_dir_optional instead of try_exists, and the composefs state directory handle it returns is the one that gets listed (split gc::list_deployment_state_dirs out of list_state_dirs for that).

Generated-by: https://github.com/cgwalters/#llms

Comment thread crates/lib/src/mount.rs Outdated
Ok(())
}

fn open_dir_nofollow(parent: &Dir, path: &Path) -> Result<Dir> {

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.

I think we can just use cap-std's Dir APIs right?

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.

Yes. The earlier fixup 1966efa had already dropped the hand-rolled O_NOFOLLOW walker for plain cap-std open_dir, and c8122c1 replaces the remaining try_exists checks with open_dir_optional.

Generated-by: https://github.com/cgwalters/#llms

Comment thread docs/src/man/bootc-install-mount.8.md Outdated

Offline target sysroot

**--writable**

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.

The use cases for mounting read-only feel obscure enough that we should default to writable.

However, there's an important related thing here - we should do the same logic as prepare-root so we e.g. handle transient /etc for example.

There's a further complication/complexity here on if we try to e.g. find a mount for /var from the image or its config. I think we probably should document that we don't look in the image for any /var mount by default. Anyone who has one as a separate partition would then need to mount it explicitly on top of this.

@cgwalters-bot cgwalters-bot Sep 25, 2026 •

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.

All three are addressed in fixups:

  • Writable is now the default, and --read-only is the opt-in (bc29ddb, docs/tmt in c93bf74).
  • /etc and /var now follow the boot-time root setup (de3245b). For composefs this reuses the initramfs mount_subdir with the image's setup-root-conf.toml, so transient/overlay/none work for both [etc] and [var]. For OSTree, etc.transient in prepare-root.conf gives a transient overlay of /usr/etc. I didn't apply root.transient: offline writes there would just vanish on unmount, so a read-only root seemed clearer. Say if you'd rather have it. Documented in 580e190, and plan 23 checks the OSTree transient-/etc case.
  • The man page and install docs now say that we never look in the image or its config for a separate /var, and that callers mount it on top themselves (8530441).

Tested with just validate, just unit-tests, and plan 23 on ostree/grub and composefs systemd-boot/UKI. All passed on a 16-core devspace.

Generated-by: https://github.com/cgwalters/#llms

@cgwalters-bot
cgwalters-bot force-pushed the feature/offline-mount-api branch from c296210 to d043b20 Compare September 24, 2026 17:10
@cgwalters-bot cgwalters-bot moved this to In Review in Workstream Sep 24, 2026
cgwalters-bot added a commit to cgwalters-forge/bootc that referenced this pull request Sep 24, 2026
We already committed in bootc-dev#2298 to in-place upgrades for every composefs
system installed since 1.16.0, the V1/V2 EROFS transition has shipped
with its bridge for 1.16 UKIs, and `bootc install mount` (bootc-dev#2483) gives
post-install tooling a supported way into a deployment instead of
poking at backend paths. What was left was docs and help text calling
the backend experimental, which no longer matches what we promise.

Stable now, under the same RELEASES.md guarantees as the ostree
backend: the backend itself (install, upgrade, switch, rollback,
status, usr-overlay, soft reboot, and `bootc install mount`), its
on-disk state, BLS installs with GRUB or systemd-boot, UKIs with
systemd-boot including sealed ones, fs-verity optional on filesystems
without it, the composefs.digest= and bare composefs= kernel
arguments, bootc-root-setup.service and setup-root-conf.toml, and the
image build commands `bootc container ukify`, `split-kernel-and-rootfs`
and `compute-composefs-digest`. The last was hidden only because it
belonged to the experimental feature set; it is documented as part of
the sealed image flow, so it is now visible and gets a man page. The
composefs part of the status JSON (BootEntryComposefs) becomes stable
API along with it.

Still experimental: the grub-cc bootloader (CI covers it only on
Fedora 44, with a GRUB binary side-loaded from ELN), UKI addons (they
are only installed at install time, never updated on upgrade, garbage
collected or reverted on rollback) and unified storage.
compute-composefs-digest-from-storage stays hidden as a debugging aid.

Known gaps are listed as limitations rather than as reasons to keep
the whole backend experimental: bootc edit, install reset, boot
counting, ostree to composefs transitions, a single ESP without
XBOOTLDR, x86_64-only testing, and the upgrade paths that CI actually
exercises. The zstd:chunked caveat now names 1.16.12, the first release
with the composefs-rs decoder fix.

Generated-by: AI
@cgwalters
cgwalters force-pushed the feature/offline-mount-api branch from d043b20 to 501d46f Compare September 24, 2026 21:52
cgwalters-bot added a commit to cgwalters-forge/bootc that referenced this pull request Sep 25, 2026
We already committed in bootc-dev#2298 to in-place upgrades for every composefs
system installed since 1.16.0, the V1/V2 EROFS transition has shipped
with its bridge for 1.16 UKIs, and `bootc install mount` (bootc-dev#2483) gives
post-install tooling a supported way into a deployment instead of
poking at backend paths. What was left was docs and help text calling
the backend experimental, which no longer matches what we promise.

Stable now, under the same RELEASES.md guarantees as the ostree
backend: the backend itself (install, upgrade, switch, rollback,
status, usr-overlay, soft reboot, and `bootc install mount`), its
on-disk state, BLS installs with GRUB or systemd-boot, UKIs with
systemd-boot including sealed ones, fs-verity optional on filesystems
without it, the composefs.digest= and bare composefs= kernel
arguments, bootc-root-setup.service and setup-root-conf.toml, and the
image build commands `bootc container ukify`, `split-kernel-and-rootfs`
and `compute-composefs-digest`. The last was hidden only because it
belonged to the experimental feature set; it is documented as part of
the sealed image flow, so it is now visible and gets a man page. The
composefs part of the status JSON (BootEntryComposefs) becomes stable
API along with it.

Still experimental: the grub-cc bootloader (CI covers it only on
Fedora 44, with a GRUB binary side-loaded from ELN), UKI addons (they
are only installed at install time, never updated on upgrade, garbage
collected or reverted on rollback) and unified storage.
compute-composefs-digest-from-storage stays hidden as a debugging aid.

Known gaps are listed as limitations rather than as reasons to keep
the whole backend experimental: bootc edit, install reset, boot
counting, ostree to composefs transitions, a single ESP without
XBOOTLDR, x86_64-only testing, and the upgrade paths that CI actually
exercises. The zstd:chunked caveat now names 1.16.12, the first release
with the composefs-rs decoder fix.

Generated-by: AI
@cgwalters cgwalters added this to the 1.17 milestone Sep 25, 2026
not look in the image or its configuration (such as `/etc/fstab` or systemd
mount units) for a separate `/var` filesystem, and does not consider kernel
arguments such as `systemd.volatile`. If the installation puts `/var` on its
own partition, mount that on top of *TARGET*`/var` yourself.

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.

Add a note here that if you want to chroot you'll need something like bwrap or podman run --root or nspawn etc?

Comment thread docs/src/man/bootc-install-mount.8.md Outdated
Mount the deployment from an offline physical sysroot, such as one just
created by **bootc install to-filesystem**, at **TARGET**. Both the OSTree
and composefs backends are supported. The sysroot must contain exactly one
deployment, as it does right after installation; otherwise bootc refuses

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.

We may need to support multiple images in the future. Hmm maybe require --latest here

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.

Both done in d86bf96.

  • --latest is now required (clap errors without it). For now it still needs exactly one deployment, so other selectors can be added later without changing what existing invocations mean. Man page, help, docs examples and plan 23 updated; plan 23 also checks that omitting it fails.
  • Added a note that plain chroot sets up no /proc, /sys, /dev or /run, pointing at bwrap, podman run --rootfs or systemd-nspawn. It replaces the old example footnote, which said podman --root.

I also squashed all the earlier fixups, so both of your commits changed (install: Simplify offline deployment mounting and docs: Match offline mount guidance to caller cleanup), keeping your author and Signed-off-by. They need your re-review and sign-off.

just validate, just unit-tests and plan 23 on ostree/grub, composefs systemd-boot/UKI and composefs grub/BLS all passed on a 16-core devspace.

Generated-by: https://github.com/cgwalters/#llms

@cgwalters-bot
cgwalters-bot force-pushed the feature/offline-mount-api branch from 8530441 to d86bf96 Compare September 25, 2026 17:36
cgwalters-bot added a commit to cgwalters-forge/bootc that referenced this pull request Sep 25, 2026
We already committed in bootc-dev#2298 to in-place upgrades for every composefs
system installed since 1.16.0, the V1/V2 EROFS transition has shipped
with its bridge for 1.16 UKIs, and `bootc install mount` (bootc-dev#2483) gives
post-install tooling a supported way into a deployment instead of
poking at backend paths. What was left was docs and help text calling
the backend experimental, which no longer matches what we promise.

Stable now, under the same RELEASES.md guarantees as the ostree
backend: the backend itself (install, upgrade, switch, rollback,
status, usr-overlay, soft reboot, and `bootc install mount`), its
on-disk state, BLS installs with GRUB or systemd-boot, UKIs with
systemd-boot including sealed ones, fs-verity optional on filesystems
without it, the composefs.digest= and bare composefs= kernel
arguments, bootc-root-setup.service and setup-root-conf.toml, and the
image build commands `bootc container ukify`, `split-kernel-and-rootfs`
and `compute-composefs-digest`. The last was hidden only because it
belonged to the experimental feature set; it is documented as part of
the sealed image flow, so it is now visible and gets a man page. The
composefs part of the status JSON (BootEntryComposefs) becomes stable
API along with it.

Still experimental: the grub-cc bootloader (CI covers it only on
Fedora 44, with a GRUB binary side-loaded from ELN), UKI addons (they
are only installed at install time, never updated on upgrade, garbage
collected or reverted on rollback) and unified storage.
compute-composefs-digest-from-storage stays hidden as a debugging aid.

Known gaps are listed as limitations rather than as reasons to keep
the whole backend experimental: bootc edit, install reset, boot
counting, ostree to composefs transitions, a single ESP without
XBOOTLDR, x86_64-only testing, and the upgrade paths that CI actually
exercises. The zstd:chunked caveat now names 1.16.12, the first release
with the composefs-rs decoder fix.

Generated-by: AI
@cgwalters-bot cgwalters-bot moved this from In Review to Needs human in Workstream Sep 25, 2026
@cgwalters-bot cgwalters-bot moved this to In Review in Composefs Stable Sep 25, 2026
cgwalters-bot added a commit to cgwalters-forge/bootc that referenced this pull request Sep 25, 2026
We already committed in bootc-dev#2298 to in-place upgrades for every composefs
system installed since 1.16.0, the V1/V2 EROFS transition has shipped
with its bridge for 1.16 UKIs, and `bootc install mount` (bootc-dev#2483) gives
post-install tooling a supported way into a deployment instead of
poking at backend paths. What was left was docs and help text calling
the backend experimental, which no longer matches what we promise.

Stable now, under the same RELEASES.md guarantees as the ostree
backend: the backend itself (install, upgrade, switch, rollback,
status, usr-overlay, soft reboot, and `bootc install mount`), its
on-disk state, BLS installs with GRUB or systemd-boot, UKIs with
systemd-boot including sealed ones, fs-verity optional on filesystems
without it, the composefs.digest= and bare composefs= kernel
arguments, bootc-root-setup.service and setup-root-conf.toml, and the
image build commands `bootc container ukify`, `split-kernel-and-rootfs`
and `compute-composefs-digest`. The last was hidden only because it
belonged to the experimental feature set; it is documented as part of
the sealed image flow, so it is now visible and gets a man page. The
composefs part of the status JSON (BootEntryComposefs) becomes stable
API along with it.

Still experimental: the grub-cc bootloader (CI covers it only on
Fedora 44, with a GRUB binary side-loaded from ELN), UKI addons (they
are only installed at install time, never updated on upgrade, garbage
collected or reverted on rollback) and unified storage.
compute-composefs-digest-from-storage stays hidden as a debugging aid.

Known gaps are listed as limitations rather than as reasons to keep
the whole backend experimental: bootc edit, install reset, boot
counting, ostree to composefs transitions, a single ESP without
XBOOTLDR, x86_64-only testing, and the upgrade paths that CI actually
exercises. The zstd:chunked caveat now names 1.16.12, the first release
with the composefs-rs decoder fix.

Generated-by: AI
@cgwalters
cgwalters marked this pull request as ready for review September 25, 2026 21:46
@bootc-bot
bootc-bot Bot requested a review from cgwalters September 25, 2026 21:46
Comment thread crates/lib/src/mount.rs Outdated

/// Open the mount target, checking that it is an empty directory which is not
/// already a mountpoint and does not overlap the sysroot.
fn open_mount_target(sysroot: &Utf8Path, target: &Utf8Path) -> Result<(Utf8PathBuf, Dir)> {

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.

Umm this feels like weird overkill.

If someone mounts over top of the sysroot that's caller error...

Checking the target dir is not empty...okay I guess that's a sane default, but it's not what mount does, and systemd just warns. Dunno. I'd probably just allow it, again - we do what the caller asked for.

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.

Done: the overlap, existing-mountpoint and non-empty refusals are gone. A non-empty target only prints a warning, like systemd. plan-23 now mounts over a non-empty target and checks that the warning is printed.

Generated-by: https://github.com/cgwalters/#llms

Comment thread crates/lib/src/mount.rs
Comment on lines +88 to +90
match (ostree_deployments, composefs_deployments) {
(1, 0) => Ok(DeploymentBackend::Ostree),
(0, 1) => Ok(DeploymentBackend::Composefs),

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.

Ohhh wow right, this is effectively the first code that could see both ostree and composefs and not know which to pick because source-of-truth elsewhere is the kernel arg or /run.

I am leaning towards us checking the state here from the ESP and /boot - i.e. what would happen when booting.

This would require us to support being passed an explicit ESP and/or mount for /boot.

Let's research that a bit.

It may be a separate PR, start a research spike

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.

Agreed, that's a follow-up, not this PR. I wrote the research spike here: https://gist.github.com/cgwalters-bot/3d295a3185c75c5a24989dda21018573. The proposal is explicit --boot/--esp options, then picking the default BLS/UKI entry the way systemd-boot or grub would and resolving the deployment from its composefs=/ostree= karg, parsed with the same code the initramfs uses. That also gives --latest a real definition. For now this PR keeps the exactly-one-deployment check.

Generated-by: https://github.com/cgwalters/#llms

Comment thread crates/lib/src/mount.rs Outdated
Comment on lines +108 to +109
let ostree_sysroot = if sysroot_dir.open_dir_optional("ostree/repo")?.is_some() {
let sysroot = ostree::Sysroot::new(Some(&gio::File::for_path(&opts.sysroot)));

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.

We can create the sysroot from the dirfd from open_dir_optional right

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.

Yes. The sysroot dir is opened once, and ostree/repo comes from open_dir_optional on it. That repo dir is reused as the composefs objects basedir. ostree-rs has no fd constructor for Sysroot, so it gets /proc/self/fd/N of that same dirfd, and the path is never looked up a second time.

Generated-by: https://github.com/cgwalters/#llms

Comment thread crates/lib/src/mount.rs Outdated
let var = sysroot_dir
.open_dir(format!("ostree/deploy/{}/{VAR}", deployment.stateroot()))
.context("Opening OSTree stateroot /var")?;
let root_tree = open_tree(

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.

Wait though for the ostree backend we should default to doing a composefs mount using the .ostree.cfs file i.e. again let's add a comment to the top of this that conceptually we're re-doing the same logic as what runs in the initramfs

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.

And also we should really be aiming to share as much code as possible

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.

Done. The module doc now says this conceptually redoes the initramfs logic (ostree-prepare-root / bootc-initramfs-setup). For OSTree, the root is now the deployment's .ostree.cfs mounted via composefs-rs composefs_fsmount, with ostree/repo/objects as the basedir and verity required for verity/signed. It only falls back to the plain checkout when composefs.enabled = no or there is no image. plan-23 asserts that the root is a composefs: overlay on both backends. The known divergences from prepare-root (unset uses the image; signed doesn't check the signature; kargs are ignored) are documented in the man page.

Tested on ab49ac1 (16-core RHEL 10 devspace): just validate, just unit-tests, plan-23 on ostree and composefs grub/ext4/BLS pass.

Generated-by: https://github.com/cgwalters/#llms

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.

Done where bootc has an equivalent:

  • The ostree composefs mount lives in ostree_ext::ostree_prepareroot::mount_composefs, next to the prepare-root.conf parsing it follows. composefs.enabled parsing is now a single composefs_state_in_config, and overlayfs_enabled_in_config uses it.
  • install.rs uses the shared .ostree.cfs constant.
  • The composefs side already uses the repo's mount() plus bootc-initramfs-setup's mount_subdir/overlay_transient.

Squashed into your two commits, keeping your authorship and sign-off.

Generated-by: https://github.com/cgwalters/#llms

@cgwalters-bot cgwalters-bot moved this from Needs human to In Progress in Workstream Sep 25, 2026
@cgwalters-bot
cgwalters-bot force-pushed the feature/offline-mount-api branch from d86bf96 to ab49ac1 Compare September 25, 2026 22:52
@github-actions github-actions Bot added the area/ostree Issues related to ostree label Sep 25, 2026
cgwalters-bot added a commit to cgwalters-bot/homegit that referenced this pull request Sep 26, 2026
bot-watch listed bootc-dev/bootc#2483, #2500 and #2470 as conflict-free
rebases, and 'bot-pr rebase' refused all three, so the coordinator
retried them every tick. bot-watch decides whether cgwalters' review is
still waiting with its outstanding-review logic (a change request is
answered by a later push of the bot's, or replaced by a later review of
his), while rebase only looked at whether his latest approving or
change-requesting review requested changes.

Rather than make rebase refuse more, let both use the outstanding-review
predicate, moved into review-state.sh: once his review is answered, a
rebase changes nothing he asked for, and while one isn't, a worker
rebases on the way to answering it. Rebase now also refuses on an
unanswered comment of his, which bot-watch already left out of the
listing.

Generated-by: AI
@cgwalters
cgwalters merged commit 9a925fb into bootc-dev:main Sep 28, 2026
92 of 95 checks passed
@cgwalters-bot cgwalters-bot moved this from In Review to Done in Workstream Sep 28, 2026
cgwalters-bot added a commit to cgwalters-forge/bootc that referenced this pull request Sep 28, 2026
We already committed in bootc-dev#2298 to in-place upgrades for every composefs
system installed since 1.16.0, the V1/V2 EROFS transition has shipped
with its bridge for 1.16 UKIs, and `bootc install mount` (bootc-dev#2483) gives
post-install tooling a supported way into a deployment instead of
poking at backend paths. What was left was docs and help text calling
the backend experimental, which no longer matches what we promise.

Stable now, under the same RELEASES.md guarantees as the ostree
backend: the backend itself (install, upgrade, switch, rollback,
status, usr-overlay, soft reboot, and `bootc install mount`), its
on-disk state, BLS installs with GRUB or systemd-boot, UKIs with
systemd-boot including sealed ones, fs-verity optional on filesystems
without it, the composefs.digest= and bare composefs= kernel
arguments, bootc-root-setup.service and setup-root-conf.toml, and the
image build commands `bootc container ukify`, `split-kernel-and-rootfs`
and `compute-composefs-digest`. The last was hidden only because it
belonged to the experimental feature set; it is documented as part of
the sealed image flow, so it is now visible and gets a man page. The
composefs part of the status JSON (BootEntryComposefs) becomes stable
API along with it.

Still experimental: the grub-cc bootloader (CI covers it only on
Fedora 44, with a GRUB binary side-loaded from ELN), UKI addons (they
are only installed at install time, never updated on upgrade, garbage
collected or reverted on rollback) and unified storage.
compute-composefs-digest-from-storage stays hidden as a debugging aid.

Known gaps are listed as limitations rather than as reasons to keep
the whole backend experimental: bootc edit, install reset, boot
counting, ostree to composefs transitions, a single ESP without
XBOOTLDR, x86_64-only testing, and the upgrade paths that CI actually
exercises. The zstd:chunked caveat now names 1.16.12, the first release
with the composefs-rs decoder fix.

Generated-by: AI
cgwalters-bot added a commit to cgwalters-forge/image-builder that referenced this pull request Sep 29, 2026
Users, groups, directories, files and the subscription were refused
for bootc containers with the composefs backend (and dropped for UKI
images before that), because every customization stage worked on the
deployment through org.osbuild.ostree.deployment, which only knows
ostree's layout.

osbuild's org.osbuild.bootc.deployment mount has bootc from the build
root assemble the deployment instead (`bootc install mount`), for
either backend. Use it for composefs, so these customizations land in
the deployment's /etc and /var as they do with ostree. Manifests
without customizations don't change: the mount is only used by the
customization stages.

The fstab, ignition and grub2 console stages still aren't generated
for composefs, so those customizations stay refused:
- bootc finds the root and /boot of a composefs system without an fstab
  (from the kernel command line, or from the partition types with a
  UKI) and doesn't write one. Adding one for extra mountpoints is
  possible now that /etc is reachable, but whether image-builder should
  start managing an fstab there is a question of its own.
- ignition and the grub2 console config write to /boot directly,
  assuming ostree's grub layout; a composefs system may use
  systemd-boot and UKIs, and bootc lays out /boot differently, so they
  need to be done per bootloader.

This needs a build root with a bootc that has `install mount`
(bootc-dev/bootc#2483, not in a release yet), which is the target
container itself unless a separate build container is given.

Generated-by: AI
cgwalters-bot added a commit to cgwalters-forge/bootc that referenced this pull request Sep 29, 2026
We already committed in bootc-dev#2298 to in-place upgrades for every composefs
system installed since 1.16.0, the V1/V2 EROFS transition has shipped
with its bridge for 1.16 UKIs, and `bootc install mount` (bootc-dev#2483) gives
post-install tooling a supported way into a deployment instead of
poking at backend paths. What was left was docs and help text calling
the backend experimental, which no longer matches what we promise.

Stable now, under the same RELEASES.md guarantees as the ostree
backend: the backend itself (install, upgrade, switch, rollback,
status, usr-overlay, soft reboot, and `bootc install mount`), its
on-disk state, BLS installs with GRUB or systemd-boot, UKIs with
systemd-boot including sealed ones, fs-verity optional on filesystems
without it, the composefs.digest= and bare composefs= kernel
arguments, bootc-root-setup.service and setup-root-conf.toml, and the
image build commands `bootc container ukify`, `split-kernel-and-rootfs`
and `compute-composefs-digest`. The last was hidden only because it
belonged to the experimental feature set; it is documented as part of
the sealed image flow, so it is now visible and gets a man page. The
composefs part of the status JSON (BootEntryComposefs) becomes stable
API along with it.

Still experimental: the grub-cc bootloader (CI covers it only on
Fedora 44, with a GRUB binary side-loaded from ELN), UKI addons (they
are only installed at install time, never updated on upgrade, garbage
collected or reverted on rollback) and unified storage.
compute-composefs-digest-from-storage stays hidden as a debugging aid.

Known gaps are listed as limitations rather than as reasons to keep
the whole backend experimental: bootc edit, install reset, boot
counting, ostree to composefs transitions, --soft-reboot=auto not
falling back to a regular reboot, a single ESP without XBOOTLDR,
x86_64-only testing, and the upgrade paths that CI actually exercises. The zstd:chunked caveat now names 1.16.12, the first release
with the composefs-rs decoder fix.

Generated-by: AI
@cgwalters-bot cgwalters-bot moved this to Done in Workstream Sep 30, 2026
cgwalters-bot added a commit to cgwalters-forge/bootc that referenced this pull request Sep 30, 2026
We already committed in bootc-dev#2298 to in-place upgrades for every composefs
system installed since 1.16.0, the V1/V2 EROFS transition has shipped
with its bridge for 1.16 UKIs, and `bootc install mount` (bootc-dev#2483) gives
post-install tooling a supported way into a deployment instead of
poking at backend paths. What was left was docs and help text calling
the backend experimental, which no longer matches what we promise.

Stable now, under the same RELEASES.md guarantees as the ostree
backend: the backend itself (install, upgrade, switch, rollback,
status, usr-overlay, soft reboot, and `bootc install mount`), its
on-disk state, BLS installs with GRUB or systemd-boot, UKIs with
systemd-boot including sealed ones, fs-verity optional on filesystems
without it, the composefs.digest= and bare composefs= kernel
arguments, bootc-root-setup.service and setup-root-conf.toml, and the
image build commands `bootc container ukify`, `split-kernel-and-rootfs`
and `compute-composefs-digest`. The last was hidden only because it
belonged to the experimental feature set; it is documented as part of
the sealed image flow, so it is now visible and gets a man page. The
composefs part of the status JSON (BootEntryComposefs) becomes stable
API along with it.

Still experimental: the grub-cc bootloader (CI covers it only on
Fedora 44, with a GRUB binary side-loaded from ELN), UKI addons (they
are only installed at install time, never updated on upgrade, garbage
collected or reverted on rollback) and unified storage.
compute-composefs-digest-from-storage stays hidden as a debugging aid.

Known gaps are listed as limitations rather than as reasons to keep
the whole backend experimental: bootc edit, install reset, boot
counting, ostree to composefs transitions, --soft-reboot=auto not
falling back to a regular reboot, a single ESP without XBOOTLDR,
x86_64-only testing, and the upgrade paths that CI actually exercises.
The zstd:chunked caveat now names 1.16.12, the first release with the
composefs-rs decoder fix.

Generated-by: AI
cgwalters-bot added a commit to cgwalters-forge/bootc that referenced this pull request Oct 1, 2026
We already committed in bootc-dev#2298 to in-place upgrades for every composefs
system installed since 1.16.0, the V1/V2 EROFS transition has shipped
with its bridge for 1.16 UKIs, and `bootc install mount` (bootc-dev#2483) gives
post-install tooling a supported way into a deployment instead of
poking at backend paths. What was left was docs and help text calling
the backend experimental, which no longer matches what we promise.

Stable now, under the same RELEASES.md guarantees as the ostree
backend: the backend itself (install, upgrade, switch, rollback,
status, usr-overlay, soft reboot, and `bootc install mount`), its
on-disk state, BLS installs with GRUB or systemd-boot, UKIs with
systemd-boot including sealed ones, fs-verity optional on filesystems
without it, the composefs.digest= and bare composefs= kernel
arguments, bootc-root-setup.service and setup-root-conf.toml, and the
image build commands `bootc container ukify`, `split-kernel-and-rootfs`
and `compute-composefs-digest`. The last was hidden only because it
belonged to the experimental feature set; it is documented as part of
the sealed image flow, so it is now visible and gets a man page. The
composefs part of the status JSON (BootEntryComposefs) becomes stable
API along with it.

Still experimental: the grub-cc bootloader (CI covers it only on
Fedora 44, with a GRUB binary side-loaded from ELN), UKI addons (they
are only installed at install time, never updated on upgrade, garbage
collected or reverted on rollback) and unified storage.
compute-composefs-digest-from-storage stays hidden as a debugging aid.

Known gaps users can hit are listed as limitations rather than as
reasons to keep the whole backend experimental: bootc edit, install
reset, boot counting, ostree to composefs transitions (planned),
--soft-reboot=auto not falling back to a regular reboot, a single ESP
without XBOOTLDR, and fsck coverage. Test coverage gaps are tracked
separately rather than documented.

Generated-by: AI
cgwalters-bot added a commit to cgwalters-forge/bootc that referenced this pull request Oct 2, 2026
We already committed in bootc-dev#2298 to in-place upgrades for every composefs
system installed since 1.16.0, the V1/V2 EROFS transition has shipped
with its bridge for 1.16 UKIs, and `bootc install mount` (bootc-dev#2483) gives
post-install tooling a supported way into a deployment instead of
poking at backend paths. What was left was docs and help text calling
the backend experimental, which no longer matches what we promise.

Stable now, under the same RELEASES.md guarantees as the ostree
backend: the backend itself (install, upgrade, switch, rollback,
status, usr-overlay, soft reboot, and `bootc install mount`), its
on-disk state, BLS installs with GRUB or systemd-boot, UKIs with
systemd-boot including sealed ones, fs-verity optional on filesystems
without it, the composefs.digest= and bare composefs= kernel
arguments, bootc-root-setup.service and setup-root-conf.toml, and the
image build commands `bootc container ukify`, `split-kernel-and-rootfs`
and `compute-composefs-digest`. The last was hidden only because it
belonged to the experimental feature set; it is documented as part of
the sealed image flow, so it is now visible and gets a man page. The
composefs part of the status JSON (BootEntryComposefs) becomes stable
API along with it.

Still experimental: the grub-cc bootloader (CI covers it only on
Fedora 44, with a GRUB binary side-loaded from ELN), UKI addons (they
are only installed at install time, never updated on upgrade, garbage
collected or reverted on rollback) and unified storage.
compute-composefs-digest-from-storage stays hidden as a debugging aid.

Known gaps users can hit are listed as limitations rather than as
reasons to keep the whole backend experimental: bootc edit, install
reset, boot counting, ostree to composefs transitions (planned),
--soft-reboot=auto not falling back to a regular reboot, a single ESP
without XBOOTLDR, and fsck coverage. Test coverage gaps are tracked
separately rather than documented.

Generated-by: AI
cgwalters-bot added a commit to cgwalters-forge/image-builder that referenced this pull request Oct 2, 2026
Users, groups, directories, files and the subscription were refused
for bootc containers with the composefs backend (and dropped for UKI
images before that), because every customization stage worked on the
deployment through org.osbuild.ostree.deployment, which only knows
ostree's layout.

osbuild's org.osbuild.bootc.deployment mount has bootc from the build
root assemble the deployment instead (`bootc install mount`), for
either backend. Use it for composefs, so these customizations land in
the deployment's /etc and /var as they do with ostree. Manifests
without customizations don't change: the mount is only used by the
customization stages.

The fstab, ignition and grub2 console stages still aren't generated
for composefs, so those customizations stay refused:
- bootc finds the root and /boot of a composefs system without an fstab
  (from the kernel command line, or from the partition types with a
  UKI) and doesn't write one. Adding one for extra mountpoints is
  possible now that /etc is reachable, but whether image-builder should
  start managing an fstab there is a question of its own.
- ignition and the grub2 console config write to /boot directly,
  assuming ostree's grub layout; a composefs system may use
  systemd-boot and UKIs, and bootc lays out /boot differently, so they
  need to be done per bootloader.

This needs a build root with a bootc that has `install mount`
(bootc-dev/bootc#2483, not in a release yet), which is the target
container itself unless a separate build container is given.

Generated-by: AI
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` area/ostree Issues related to ostree

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants