From 2c4751c7b28f027c3077c30d014dbd3bbc629bb6 Mon Sep 17 00:00:00 2001 From: Gideon <87426140+GideonBear@users.noreply.github.com> Date: Thu, 12 Jun 2025 08:36:35 +0200 Subject: [PATCH] Add CachyOS support (#1153) * Add CachyOS support * Fix os-release file * Re-run CI --- src/steps/os/linux.rs | 7 ++++++- src/steps/os/os_release/cachyos | 11 +++++++++++ 2 files changed, 17 insertions(+), 1 deletion(-) create mode 100644 src/steps/os/os_release/cachyos diff --git a/src/steps/os/linux.rs b/src/steps/os/linux.rs index 61d16514..6babeb34 100644 --- a/src/steps/os/linux.rs +++ b/src/steps/os/linux.rs @@ -65,7 +65,7 @@ impl Distribution { Some("nobara") => Distribution::Nobara, Some("void") => Distribution::Void, Some("debian") | Some("pureos") | Some("Deepin") | Some("linuxmint") => Distribution::Debian, - Some("arch") | Some("manjaro-arm") | Some("garuda") | Some("artix") => Distribution::Arch, + Some("arch") | Some("manjaro-arm") | Some("garuda") | Some("artix") | Some("cachyos") => Distribution::Arch, Some("solus") => Distribution::Solus, Some("gentoo") | Some("funtoo") => Distribution::Gentoo, Some("exherbo") => Distribution::Exherbo, @@ -1320,4 +1320,9 @@ mod tests { fn test_bazzite() { test_template(include_str!("os_release/bazzite"), Distribution::FedoraImmutable); } + + #[test] + fn test_cachyos() { + test_template(include_str!("os_release/cachyos"), Distribution::Arch); + } } diff --git a/src/steps/os/os_release/cachyos b/src/steps/os/os_release/cachyos new file mode 100644 index 00000000..86dea09c --- /dev/null +++ b/src/steps/os/os_release/cachyos @@ -0,0 +1,11 @@ +NAME="CachyOS Linux" +PRETTY_NAME="CachyOS" +ID=cachyos +BUILD_ID=rolling +ANSI_COLOR="38;2;23;147;209" +HOME_URL="https://cachyos.org/" +DOCUMENTATION_URL="https://wiki.cachyos.org/" +SUPPORT_URL="https://discuss.cachyos.org/" +BUG_REPORT_URL="https://github.com/cachyos" +PRIVACY_POLICY_URL="https://terms.archlinux.org/docs/privacy-policy/" +LOGO=cachyos