You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Add the `-s`/`--sysroot` option present in upstream util-linux but
previously missing. All hardcoded `/sys/` and `/proc/` paths in
`sysfs.rs` are threaded through a `root: &Path` parameter; the default
root is `/` so behaviour without the flag is unchanged.
To support this cleanly, introduce a new local shared crate `uulinux`
with a `join_under_root(root, path) -> PathBuf` helper that prepends a
sysroot to an absolute system path without discarding the root (unlike
`Path::join`). Also use it in `lsmem` to replace the existing
hand-rolled path construction there.
Add unit tests for `join_under_root` and Linux integration tests for
`lscpu --sysroot` using a minimal fake sysfs/procfs tree.
0 commit comments