Function os_detect::detect_os_from_device
source · pub fn detect_os_from_device<'a, F: Into<FilesystemType<'a>>>(
device: &Path,
fs: F
) -> Option<OS>
Expand description
Mounts the partition to a temporary directory and checks for the existence of an installed operating system.
If the installed operating system is Linux, it will also report back the location of the home partition.