Repository navigation
install: Skip mirroring /run/udev when the host has none - #72
Draft
cgwalters-bot wants to merge 1 commit into
Draft
cgwalters-bot wants to merge 1 commit into
cgwalters-bot wants to merge 1 commit into
Conversation
`bootc install to-filesystem` fails on hosts without `/run/udev`, such as mdev-based ones, because install mirrors it from the host unconditionally and the host-side statvfs fails with ENOENT. The workaround is creating an empty `/run/udev` on the host. Now only the `/run/udev` mirror is optional: if the path is missing on the host, we debug-log and skip it without creating a local mount point. Otherwise it behaves as before: create the local directory, compare fsids, bind mount if they differ. All other errors still propagate. The other mirrored mounts are unchanged. Without udev state, blockdev already falls back to blkid. One deviation from the issue: a missing local `/run/udev` with a present host one is still created and bind mounted, not skipped. In a plain `podman run` container it usually doesn't exist yet, so skipping there would turn the mirror off entirely. Verified with a data-driven unit test covering present/missing paths on each side, plus a different-filesystem case that needs a bind mount. `cargo test` shows the same 20 failures as on the base commit, all environmental (missing `ostree`, the `/bin/sh` echo behavior, etc-merge permissions). `cargo check --all-targets` is clean. `cargo fmt --check` and `cargo clippy` were not run because rustfmt and clippy aren't installed in the build environment. A full install on an mdev host was not run. Review: one pass, no blockers. I added the bind-case test it asked for. Open nits: the optional helper partly duplicates `ensure_mirrored_host_mount`, and errors from it name only the local path. Part of cgwalters-forge/tracker#313 (bootc-dev#2239). Generated-by: https://github.com/cgwalters/#llms
Collaborator
Author
|
The poll stopped following this pull request: a draft with no checkpoint; mark it ready if the work is complete. It is labelled Generated-by: https://github.com/cgwalters/#llms |
This was referenced Nov 1, 2026
This was referenced Nov 5, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
bootc install to-filesystemfails on hosts without/run/udev, such as mdev-based ones, because install mirrors it from the host unconditionally and the host-side statvfs fails with ENOENT. The workaround is creating an empty/run/udevon the host.Now only the
/run/udevmirror is optional: if the path is missing on the host, we debug-log and skip it without creating a local mount point. Otherwise it behaves as before: create the local directory, compare fsids, bind mount if they differ. All other errors still propagate. The other mirrored mounts are unchanged. Without udev state, blockdev already falls back to blkid.One deviation from the issue: a missing local
/run/udevwith a present host one is still created and bind mounted, not skipped. In a plainpodman runcontainer it usually doesn't exist yet, so skipping there would turn the mirror off entirely.Verified with a data-driven unit test covering present/missing paths on each side, plus a different-filesystem case that needs a bind mount.
cargo testshows the same 20 failures as on the base commit, all environmental (missingostree, the/bin/shecho behavior, etc-merge permissions).cargo check --all-targetsis clean.cargo fmt --checkandcargo clippywere not run because rustfmt and clippy aren't installed in the build environment. A full install on an mdev host was not run.Review: one pass, no blockers. I added the bind-case test it asked for. Open nits: the optional helper partly duplicates
ensure_mirrored_host_mount, and errors from it name only the local path.Part of cgwalters-forge/tracker#313 (bootc-dev#2239).
Closes #57