-
Notifications
You must be signed in to change notification settings - Fork 33
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
rd-util: Use
findmnt
to map path to devname
For root filesystems, proc_mounts crate often fails to find the actual underlying device. e.g. For root filesystem, the source usually points to `/dev/root` which doesn't always exist. `findmnt` already has a bunch of heuristics to resolve the actual device. Let's use that instead.
- Loading branch information
Showing
1 changed file
with
27 additions
and
1 deletion.
There are no files selected for viewing
This file contains 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