detect void as a linux platform as well (#8717)

Co-authored-by: Jan Christian Grünhage <jan.christian@gruenhage.xyz>
This commit is contained in:
Tomas Touceda 2022-11-15 12:26:18 -03:00 committed by GitHub
parent ca13659fe0
commit 9a801dec8d
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
2 changed files with 2 additions and 1 deletions

1
changes/void-is-linux Normal file
View file

@ -0,0 +1 @@
* Add void linux to the list of recognized distros.

View file

@ -301,7 +301,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",
"linux", "ubuntu", "debian", "rhel", "centos", "sles", "kali", "gentoo", "amzn", "pop", "arch", "linuxmint", "void",
}
func IsLinux(hostPlatform string) bool {