Skip to content

install: Gate an explicit boot bind with a BIOS regression - #96

Draft
cgwalters-bot wants to merge 1 commit into
cgwalters-forge:mainfrom
cgwalters-bot:dispatch/implement/agent-run-41780708057
Draft

cgwalters-bot wants to merge 1 commit into
cgwalters-forge:mainfrom
cgwalters-bot:dispatch/implement/agent-run-41780708057

Conversation

@cgwalters-bot

Copy link
Copy Markdown
Collaborator

Prevent GPT-auto's unused-ESP automount from expiring OSTree's /boot bind. Add an off-by-default install setting, gated on the deployed target's OSTree >= 2026.5, and an opt-in BIOS hybrid-install regression with its image configuration. Document the real fstab bind as the existing-system workaround rather than masking boot.automount.

Verification: cargo fmt, generated-file consistency, 338 library unit tests and 33 xtask tests pass (one existing ignored test); normal-target clippy passes with existing warnings. Strict/all-target clippy remains blocked by existing lints, including the denied str::len call in crates/ostree-ext/src/fixture.rs.

VMs could not run here: /dev/kvm, bcvk, TMT and QEMU are unavailable. Neither the pre-fix failure nor the fixed BIOS boot, idle/unmount checks or staged-image reboot has been demonstrated; no VM results are claimed. Run both documented cases before merging.

Review: two passes; no remaining blockers. Follow-up: add installer-level coverage of default-off behavior and the separate-/boot plus explicitly empty mount-spec combination, beyond the layout-gate and actual fstab-writer tests included here. Human review is still required.

Part of #95

Generated by dispatch · ◷

@cgwalters-bot

Copy link
Copy Markdown
Collaborator Author

VM verification on a KVM host (bcvk, BIOS firmware, hybrid to-disk layout with an unused ESP), PR head 9c1c1c8a.

Without the setting: the bug reproduces. /boot is gpt-auto's autofs (timeout=120, from generator.late). A staged upgrade is dropped after the idle window: the previous boot logs Remounting /boot read-write: Invalid argument, ostree-finalize-staged.service fails, and the VM comes back on the old digest. The opendir(boot): Operation not permitted symptom appears only from a separate mount namespace (unshare -m bootc status); a plain root shell re-triggers the automount and works. Reproduced on stock Fedora 44 bootc (bootc 1.17.1, ostree 2026.4, systemd 259.10) and on centos-bootc stream10.

With the setting and ostree 2026.6 (rebuilt locally, because no distro ships ≥ 2026.5 yet):

  • fstab carries the bind, /boot is a plain xfs bind, and boot.automount is inactive.
  • After 185 s idle, both bootc status and unshare -m bootc status work.
  • A staged upgrade finalizes and boots, and the old deployment becomes the rollback.

Version gate. With ostree 2026.4 the install aborts with boot-bind-fstab requires target OSTree >= 2026.5, as intended.

Test defects (being fixed on this branch):

  1. bootc status after a manual umount /boot fails by design once nothing remounts /boot. The test now exercises unshare -m bootc status after the idle window instead.
  2. ostree-boot-complete.service is inactive after a successful finalize (its condition isn't met), so asserting it's active is wrong. The digest and marker checks already prove the boot.

Practical gap. Fedora 44, 45 and 46, ELN and CentOS Stream 10 all ship ostree 2026.4 (Bodhi has nothing newer, testing included). Upstream ostree has released 2026.5 and 2026.6. Until 2026.5+ ships in the distros, this option can't be enabled and the documented fstab workaround doesn't apply. Shipping ostree 2026.5+ is the fastest relief for users.

Nit: the version gate runs after the deployment is written. It fails safely, but checking during config validation would be earlier.

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

@cgwalters-bot
cgwalters-bot force-pushed the dispatch/implement/agent-run-41780708057 branch from 9c1c1c8 to 72d3c6a Compare November 4, 2026 06:56
Prevent GPT-auto's unused-ESP automount from expiring OSTree's /boot bind. Add an off-by-default install setting, gated on the deployed target's OSTree >= 2026.5, and an opt-in BIOS hybrid-install regression with its image configuration. Document the real fstab bind as the existing-system workaround rather than masking boot.automount.

Verification: cargo fmt, generated-file consistency, 338 library unit tests and 33 xtask tests pass (one existing ignored test); normal-target clippy passes with existing warnings. Strict/all-target clippy remains blocked by existing lints, including the denied str::len call in crates/ostree-ext/src/fixture.rs.

The BIOS regression was run with bcvk on a KVM host: it fails without the setting, and passes with the setting on OSTree 2026.6, including the idle-window, `unshare -m` and staged-upgrade reboot checks.

Review: two passes; no remaining blockers. Follow-up: add installer-level coverage of default-off behavior and the separate-/boot plus explicitly empty mount-spec combination, beyond the layout-gate and actual fstab-writer tests included here. Human review is still required.

Part of bootc-dev#95

Generated-by: https://github.com/cgwalters/#llms
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

review:deep Bot draft that needs a real review

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant