Skip to main content

parse_os_release

Function parse_os_release 

Source
pub fn parse_os_release(
    root: &Dir,
) -> Result<Option<(String, Option<String>, Option<String>)>>
Expand description

Parses /usr/lib/os-release and returns (id, title, version) Expects a reference to the root of the filesystem, or the root of a mounted EROFS