Skip to content

Validate config edits before saving and add a read-only driver plan - #35011

Open
pokemonred06-creator wants to merge 2 commits into
RROrg:mainfrom
pokemonred06-creator:feature/config-driver-plan
Open

pokemonred06-creator wants to merge 2 commits into
RROrg:mainfrom
pokemonred06-creator:feature/config-driver-plan

Conversation

@pokemonred06-creator

Copy link
Copy Markdown

This is a configuration and driver-planning change. It targets main directly and is independent of #35009. It does not replace the module menu, change the boot path, or apply a driver selection.

Configuration editor

  • Edit and validate a private draft instead of replacing the active YAML before validating. Keep the rejected draft available to correct, but keep the active profile and build artifacts unchanged on invalid edit, cancel, no-op, conflict or failed publication.
  • Accept a single mapping with unique top-level keys and check the shape of known map and identity fields. Preserve extension keys and legacy scalar representations. Publish a valid change by same-filesystem rename after a stale-content check; no claim of crash consistency on FAT or coordination with arbitrary external writers.

Read-only driver plan

  • Add rrctl plan --explain for an explicitly supplied target catalog and requested roots. Show dependencies, their requesting roots, and optionally additions/removals versus an existing selection. No probing, fetching, rebuild flag or writes.
  • Distinguish base/update providers and declared built-ins; return an error instead of a partial diff for missing/ambiguous providers or cycles. Provide deterministic JSON for comparisons and tests.
  • Usage and limits are documented under docs/driver-plan.md.

Verification

  • Config transaction suite and 13 planner tests passed on macOS, in a network-isolated Linux container, and in a local read-only chroot using RR userspace Bash 5.2.21, yq 4.53.3 and Python 3.11.11. Dialog interactions were simulated, not a physical boot or interactive FAT media qualification.
  • The public epyc7002-7.4-5.10.55 catalog plan for virtio_scsi, virtio_net and i915 returned the expected 19 providers. The public catalog is not a certification of an installed custom kernel.
  • Adds a path-scoped, read-only regression workflow.

This branch has not been deployed

No deployments
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