stanislav-tkach / os_info

Rust library to detect the operating system type
MIT License
171 stars 51 forks source link

Add support for VoidLinux and Ultramarine #364

Closed MysticalDevil closed 7 months ago

MysticalDevil commented 7 months ago

Fix the Ultramarine support. Add support for VoidLinux, a rolling release linux based on the monolithic kernel. os-release file:

NAME="Void"
ID="void"
PRETTY_NAME="Void Linux"
HOME_URL="https://voidlinux.org/"
DOCUMENTATION_URL="https://docs.voidlinux.org/"
LOGO="void-logo"
ANSI_COLOR="0;38;2;71;128;97"
DISTRIB_ID="void"
MysticalDevil commented 7 months ago

Sorry, I made a mistake.

diff --git a/os_info/src/linux/lsb_release.rs b/os_info/src/linux/lsb_release.rs
index ff6b903..0d0f69f 100644
--- a/os_info/src/linux/lsb_release.rs
+++ b/os_info/src/linux/lsb_release.rs
@@ -43,7 +43,7 @@ pub fn get() -> Option<Info> {
         Some("SUSE") => Type::SUSE,
         Some("Ubuntu") => Type::Ubuntu,
         Some("Ultramarine") => Type::Ultramarine,
-        Some("Void") => Type::Void,
+        Some("VoidLinux") => Type::Void,
         _ => Type::Linux,
     };
stanislav-tkach commented 7 months ago

Thank you for the pull request! I have merged https://github.com/stanislav-tkach/os_info/pull/363, so the Ultramarine part should be fixed now. Can you please update the pull request?