Skip to content

install: Skip mirroring /run/udev when the host has none - #97

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

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

Conversation

@cgwalters-bot

Copy link
Copy Markdown
Collaborator

Hosts without udev currently fail installation because mirroring /run/udev is mandatory. Port the small patch from #72 (inspected head 67428c1), explicitly superseding #72 with this replacement draft. Skip only when the host path is absent, with a debug log and no local directory creation; a present host still creates and mirrors a missing local path. Other errors and mandatory mirrors remain unchanged. Tests retain the four existence cases and strengthen no-creation, different-filesystem bind selection and non-ENOENT lookup coverage without privileged mounts.

Validation in a Fedora 44 container with the project's install-buildroot prerequisites, Rust/rustfmt/Clippy 1.94.1, ostree and bash, and tmpfs /tmp, /var/tmp and /run: cargo fmt --check exit 0; cargo clippy --all-targets exit 101; cargo test exit 0. The supplied base 0ca885f gives the same three exit codes in the same environment. Clippy fails at crates/ostree-ext/src/fixture.rs:274:27: disallowed str::len (clippy::disallowed_methods). This is outside the two-file patch; acceptance is incomplete, not green. No assertions or lint rules were weakened.

Full mdev-host installation remains untested. Review: one pass, no blockers; open nit is public-wrapper skip/no-creation coverage in addition to the planner tests. Promotion remains operator-controlled; #72 and issues were not updated or closed, and nothing was posted upstream.

Part of #57
Part of cgwalters-forge/tracker#313; references bootc-dev#2239.

Generated by dispatch · ◷

Hosts without udev currently fail installation because mirroring /run/udev is mandatory. Port the small patch from cgwalters-forge#72 (inspected head 67428c1), explicitly superseding bootc-dev#72 with this replacement draft. Skip only when the host path is absent, with a debug log and no local directory creation; a present host still creates and mirrors a missing local path. Other errors and mandatory mirrors remain unchanged. Tests retain the four existence cases and strengthen no-creation, different-filesystem bind selection and non-ENOENT lookup coverage without privileged mounts.

Validation in a Fedora 44 container with the project's install-buildroot prerequisites, Rust/rustfmt/Clippy 1.94.1, ostree and bash, and tmpfs /tmp, /var/tmp and /run: `cargo fmt --check` exit 0; `cargo clippy --all-targets` exit 101; `cargo test` exit 0. The supplied base 0ca885f gives the same three exit codes in the same environment. Clippy fails at crates/ostree-ext/src/fixture.rs:274:27: disallowed `str::len` (clippy::disallowed_methods). This is outside the two-file patch; acceptance is incomplete, not green. No assertions or lint rules were weakened.

Full mdev-host installation remains untested. Review: one pass, no blockers; open nit is public-wrapper skip/no-creation coverage in addition to the planner tests. Promotion remains operator-controlled; bootc-dev#72 and issues were not updated or closed, and nothing was posted upstream.

Part of bootc-dev#57
Part of cgwalters-forge/tracker#313; references bootc-dev#2239.

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

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants