Repository navigation
install: Add explicit offline deployment mount API - #2483
Conversation
ccd933e to
c296210
Compare
| Ok(current) | ||
| } | ||
|
|
||
| fn open_optional_dir_nofollow(parent: &Dir, path: &Path) -> Result<Option<Dir>> { |
There was a problem hiding this comment.
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
| Ok(()) | ||
| } | ||
|
|
||
| fn open_dir_nofollow(parent: &Dir, path: &Path) -> Result<Dir> { |
There was a problem hiding this comment.
I think we can just use cap-std's Dir APIs right?
There was a problem hiding this comment.
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
|
|
||
| Offline target sysroot | ||
|
|
||
| **--writable** |
There was a problem hiding this comment.
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.
There was a problem hiding this comment.
All three are addressed in fixups:
- Writable is now the default, and
--read-onlyis the opt-in (bc29ddb, docs/tmt in c93bf74). /etcand/varnow follow the boot-time root setup (de3245b). For composefs this reuses the initramfsmount_subdirwith the image'ssetup-root-conf.toml, so transient/overlay/none work for both[etc]and[var]. For OSTree,etc.transientinprepare-root.confgives a transient overlay of/usr/etc. I didn't applyroot.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-/etccase.- 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
c296210 to
d043b20
Compare
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
d043b20 to
501d46f
Compare
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
| 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. |
There was a problem hiding this comment.
Add a note here that if you want to chroot you'll need something like bwrap or podman run --root or nspawn etc?
| 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 |
There was a problem hiding this comment.
We may need to support multiple images in the future. Hmm maybe require --latest here
There was a problem hiding this comment.
Both done in d86bf96.
--latestis 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
chrootsets up no/proc,/sys,/devor/run, pointing atbwrap,podman run --rootfsorsystemd-nspawn. It replaces the old example footnote, which saidpodman --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
8530441 to
d86bf96
Compare
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
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
|
|
||
| /// 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)> { |
There was a problem hiding this comment.
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.
There was a problem hiding this comment.
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
| match (ostree_deployments, composefs_deployments) { | ||
| (1, 0) => Ok(DeploymentBackend::Ostree), | ||
| (0, 1) => Ok(DeploymentBackend::Composefs), |
There was a problem hiding this comment.
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
There was a problem hiding this comment.
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
| 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))); |
There was a problem hiding this comment.
We can create the sysroot from the dirfd from open_dir_optional right
There was a problem hiding this comment.
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
| let var = sysroot_dir | ||
| .open_dir(format!("ostree/deploy/{}/{VAR}", deployment.stateroot())) | ||
| .context("Opening OSTree stateroot /var")?; | ||
| let root_tree = open_tree( |
There was a problem hiding this comment.
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
There was a problem hiding this comment.
And also we should really be aiming to share as much code as possible
There was a problem hiding this comment.
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
There was a problem hiding this comment.
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.enabledparsing is now a singlecomposefs_state_in_config, andoverlayfs_enabled_in_configuses it. install.rsuses the shared.ostree.cfsconstant.- The composefs side already uses the repo's
mount()plus bootc-initramfs-setup'smount_subdir/overlay_transient.
Squashed into your two commits, keeping your authorship and sign-off.
Generated-by: https://github.com/cgwalters/#llms
d86bf96 to
ab49ac1
Compare
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
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
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
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
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
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
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
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
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 currentmain.The reduced API adds
bootc install mount --latestfor OSTree and native composefs targets.--latestis 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;/etcand/varare writable unless--read-onlyis given, and are set up the way the boot-time root setup would (e.g. a transient/etc). A separate/varfilesystem is not looked up; callers mount it themselves. Mounts remain in the caller's namespace, and callers clean them up withumount -Ror 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-filesystemandto-existing-rootusers atbootc install mountinstead ofostree 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-bykept):install: Simplify offline deployment mounting(code,--latest) anddocs: 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 validatejust unit-testsjust test-tmt install-outside-container(plan 23), which coversbootc install mountwithout--latest(rejected),--read-onlyand default writable behavior, transient/etc, and persistence: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