From 4413a20bcbf1c536815c4e69ba407405d53351a3 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Przemys=C5=82aw=20Romanik?= <46846000+rom4nik@users.noreply.github.com> Date: Tue, 14 Mar 2023 11:50:28 +0100 Subject: [PATCH] Add EndeavourOS, Manjaro, openSUSE Leap and Tumbleweed to HostLinuxOSs (#10456) Fixes broken data collection (e.g. disk space, IP addresses, installed Python and RPM packages) and "unrecognized platform" error for those distros. # Checklist for submitter If some of the following don't apply, delete the relevant line. - [x] Changes file added for user-visible changes in `changes/` or `orbit/changes/`. See [Changes files](https://fleetdm.com/docs/contributing/committing-changes#changes-files) for more information. - [x] Manual QA for all new/changed functionality --- changes/10456-add-more-distros-to-hostlinuxoss | 1 + server/fleet/hosts.go | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) create mode 100644 changes/10456-add-more-distros-to-hostlinuxoss diff --git a/changes/10456-add-more-distros-to-hostlinuxoss b/changes/10456-add-more-distros-to-hostlinuxoss new file mode 100644 index 0000000000..35bb28ae96 --- /dev/null +++ b/changes/10456-add-more-distros-to-hostlinuxoss @@ -0,0 +1 @@ +* Added EndeavourOS, Manjaro, openSUSE Leap and Tumbleweed to HostLinuxOSs. \ No newline at end of file diff --git a/server/fleet/hosts.go b/server/fleet/hosts.go index 903dc4d459..ea9041230c 100644 --- a/server/fleet/hosts.go +++ b/server/fleet/hosts.go @@ -513,7 +513,7 @@ func (h *Host) FleetPlatform() string { // HostLinuxOSs are the possible linux values for Host.Platform. var HostLinuxOSs = []string{ - "linux", "ubuntu", "debian", "rhel", "centos", "sles", "kali", "gentoo", "amzn", "pop", "arch", "linuxmint", "void", "nixos", + "linux", "ubuntu", "debian", "rhel", "centos", "sles", "kali", "gentoo", "amzn", "pop", "arch", "linuxmint", "void", "nixos", "endeavouros", "manjaro", "opensuse-leap", "opensuse-tumbleweed", } func IsLinux(hostPlatform string) bool {