From fab8f1a9f1194638952efea497bbb4fa804f8e71 Mon Sep 17 00:00:00 2001 From: Roey Darwish Dror Date: Fri, 15 Oct 2021 06:15:38 +0300 Subject: [PATCH] Support PureOS (fix #753) (#771) --- src/steps/os/linux.rs | 7 ++++++- src/steps/os/os_release/pureos | 6 ++++++ 2 files changed, 12 insertions(+), 1 deletion(-) create mode 100644 src/steps/os/os_release/pureos diff --git a/src/steps/os/linux.rs b/src/steps/os/linux.rs index 3cc7c303..972be62a 100644 --- a/src/steps/os/linux.rs +++ b/src/steps/os/linux.rs @@ -52,7 +52,7 @@ impl Distribution { Some("clear-linux-os") => Distribution::ClearLinux, Some("fedora") => Distribution::Fedora, Some("void") => Distribution::Void, - Some("debian") => Distribution::Debian, + Some("debian" | "pureos") => Distribution::Debian, Some("arch" | "anarchy" | "manjaro-arm" | "garuda" | "artix") => Distribution::Arch, Some("solus") => Distribution::Solus, Some("gentoo") => Distribution::Gentoo, @@ -724,4 +724,9 @@ mod tests { fn test_garuda() { test_template(include_str!("os_release/garuda"), Distribution::Arch); } + + #[test] + fn test_pureos() { + test_template(include_str!("os_release/pureos"), Distribution::Debian); + } } diff --git a/src/steps/os/os_release/pureos b/src/steps/os/os_release/pureos new file mode 100644 index 00000000..f879bca6 --- /dev/null +++ b/src/steps/os/os_release/pureos @@ -0,0 +1,6 @@ +ID=pureos +NAME=PureOS +PRETTY_NAME=PureOS + +VERSION_ID=10.0 +VERSION_CODENAME=byzantium