Skip to content

initramfs: Read setup-root policy from the mounted image - #136

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

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

Conversation

@cgwalters-bot

Copy link
Copy Markdown
Collaborator

Executive summary

Read setup-root configuration from the selected composefs image, sharing the reader with offline mounts, so soft reboot honors the staged image's policy instead of defaults. Remove the dracut bake-in and document the new behavior; provide shared assembly argument construction for later install-time use.

Part of #134

Verification: cargo fmt --check, cargo clippy (existing warnings), initramfs unit tests (13 passed, 2 ignored), bootc-lib unit tests (334 passed, 1 ignored), shell syntax and diff checks passed.

No VM boot was reproduced. The two new mount-assembly tests require a private mount namespace; this sandbox denied user-namespace creation. TMT was not run because tmt and bcvk are unavailable.

Review: two passes; the symlink-confinement blocker was fixed, with no blockers left in the final delta review. Follow-up: automate the namespace assembly tests and add behavioral override-precedence/error coverage and staged-versus-running image integration coverage.

Open choice: the test-only config override now treats an explicitly missing file as an error. The handback contract publishes one patch/commit, so the requested three-commit organization was not retained. Human review remains required; keep this draft.

Closes #134

Generated by dispatch · ◷

## Executive summary
Read setup-root configuration from the selected composefs image, sharing the reader with offline mounts, so soft reboot honors the staged image's policy instead of defaults. Remove the dracut bake-in and document the new behavior; provide shared assembly argument construction for later install-time use.

Part of cgwalters-forge#134

Verification: cargo fmt --check, cargo clippy (existing warnings), initramfs unit tests (13 passed, 2 ignored), bootc-lib unit tests (334 passed, 1 ignored), shell syntax and diff checks passed.

No VM boot was reproduced. The two new mount-assembly tests require a private mount namespace; this sandbox denied user-namespace creation. TMT was not run because tmt and bcvk are unavailable.

Review: two passes; the symlink-confinement blocker was fixed, with no blockers left in the final delta review. Follow-up: automate the namespace assembly tests and add behavioral override-precedence/error coverage and staged-versus-running image integration coverage.

Open choice: the test-only config override now treats an explicitly missing file as an error. The handback contract publishes one patch/commit, so the requested three-commit organization was not retained. Human review remains required; keep this draft.

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

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant