Skip to content

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

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

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

Conversation

@cgwalters-bot

Copy link
Copy Markdown
Collaborator

Executive summary

Hosts without udev must not fail installation just because the host lacks /run/udev. Make only that mirror optional: debug-log and skip an absent host path without local creation; otherwise create a missing local mount point and retain filesystem comparison and bind behavior. Other mirrors remain mandatory and real errors propagate.

This is the replacement draft for #57, refreshing #112's examined head 92b39cd6454aea9eec77578094d10874e2ac055f onto supplied base 0ca885fef4ea0cd658ab495ab39f3a70c14528fb; it explicitly supersedes #112 and predecessors #101, #97 and #72. Retain the shared implementation and unprivileged table-driven coverage. Keep the byte-length-equivalent lint prerequisites in separate files; this handback publishes one commit, so they cannot be isolated as a prep commit here. Replace only the stderr test's invalid-UTF-8 echo -e producer with portable octal printf, leaving production capture and assertions unchanged.

Verification: on Ubuntu 26.04 with rustc/cargo 1.93.1, rustfmt 1.8.0, clippy 0.1.93 and libostree/ostree CLI 2025.7, cargo fmt --check, cargo clippy --all-targets and cargo test each exited 0 (543 passed, 4 existing ignored); exact producer bytes, newline, stderr and exit status were also verified under dash 0.5.12 and bash 5.3.9. Clippy retains warnings; lint configuration is unchanged.

Full mdev-host installation and privileged bind mounts remain untested. Review: one pass, no blockers or nits left open.

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

Closes #57

Generated by dispatch · ◷

## Executive summary

Hosts without udev must not fail installation just because the host lacks `/run/udev`. Make only that mirror optional: debug-log and skip an absent host path without local creation; otherwise create a missing local mount point and retain filesystem comparison and bind behavior. Other mirrors remain mandatory and real errors propagate.

This is the replacement draft for bootc-dev#57, refreshing bootc-dev#112's examined head `92b39cd6454aea9eec77578094d10874e2ac055f` onto supplied base `0ca885fef4ea0cd658ab495ab39f3a70c14528fb`; it explicitly supersedes bootc-dev#112 and predecessors bootc-dev#101, bootc-dev#97 and bootc-dev#72. Retain the shared implementation and unprivileged table-driven coverage. Keep the byte-length-equivalent lint prerequisites in separate files; this handback publishes one commit, so they cannot be isolated as a prep commit here. Replace only the stderr test's invalid-UTF-8 `echo -e` producer with portable octal `printf`, leaving production capture and assertions unchanged.

Verification: on Ubuntu 26.04 with rustc/cargo 1.93.1, rustfmt 1.8.0, clippy 0.1.93 and libostree/ostree CLI 2025.7, `cargo fmt --check`, `cargo clippy --all-targets` and `cargo test` each exited 0 (543 passed, 4 existing ignored); exact producer bytes, newline, stderr and exit status were also verified under dash 0.5.12 and bash 5.3.9. Clippy retains warnings; lint configuration is unchanged.

Full mdev-host installation and privileged bind mounts remain untested. Review: one pass, no blockers or nits left open.

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.

1 participant