From 5f19116c1d09a9f326a6bdde4e0f62a757c329c3 Mon Sep 17 00:00:00 2001 From: Matt Turner Date: Tue, 17 May 2022 09:09:22 +0000 Subject: [PATCH] Add detection of Gentoo Linux --- os_info/src/linux/lsb_release.rs | 1 + os_info/src/os_type.rs | 2 ++ 2 files changed, 3 insertions(+) diff --git a/os_info/src/linux/lsb_release.rs b/os_info/src/linux/lsb_release.rs index 68e1e78e..c4ad4576 100644 --- a/os_info/src/linux/lsb_release.rs +++ b/os_info/src/linux/lsb_release.rs @@ -22,6 +22,7 @@ pub fn get() -> Option { Some("Debian") => Type::Debian, Some("EndeavourOS") => Type::EndeavourOS, Some("Fedora") | Some("Fedora Linux") => Type::Fedora, + Some("Gentoo") => Type::Gentoo, Some("Linuxmint") => Type::Mint, Some("ManjaroLinux") => Type::Manjaro, Some("Mariner") => Type::Mariner, diff --git a/os_info/src/os_type.rs b/os_info/src/os_type.rs index f0ebab43..124598c7 100644 --- a/os_info/src/os_type.rs +++ b/os_info/src/os_type.rs @@ -28,6 +28,8 @@ pub enum Type { Fedora, /// FreeBSD (). FreeBSD, + /// Gentoo Linux (). + Gentoo, /// Linux based operating system (). HardenedBSD, /// HardenedBSD (https://hardenedbsd.org/)