pub fn find_library(
source_root: &Path,
lib_name: &str,
extra_paths: &[&str],
) -> Option<PathBuf>Expand description
Find a library in standard paths within a rootfs.
Searches lib64, lib, and systemd private library paths.
The extra_paths parameter allows callers to add additional search paths
(e.g., /usr/libexec/sudo for rootfs builds).
Returns None if the library is not found in any search path.