fn prune_known_run_paths(paths: &mut BTreeSet<Utf8PathBuf>)Expand description
Remove known container-runtime injected paths from /run.
Podman/buildah inject files like /run/systemd/resolve/stub-resolv.conf
for DNS resolution, creating the parent directory tree as a side effect.
The file itself is usually already filtered out (it’s a bind mount detected
by is_mountpoint()), but the parent directories /run/systemd and
/run/systemd/resolve remain.
Remove the known file if present, then walk up removing each parent
under /run that has no remaining children in the set.