Skip to content

Commit

Permalink
lib/misc: Recognize Alpine Linux
Browse files Browse the repository at this point in the history
Signed-off-by: Natanael Copa <ncopa@alpinelinux.org>
  • Loading branch information
ncopa committed Nov 17, 2021
1 parent f3b2411 commit 4df08f3
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 0 deletions.
1 change: 1 addition & 0 deletions open-vm-tools/lib/include/guest_os.h
Original file line number Diff line number Diff line change
Expand Up @@ -265,6 +265,7 @@ Bool Gos_InSetArray(uint32 gos, const uint32 *set);

/* Linux */
#define STR_OS_AMAZON_LINUX "amazonlinux"
#define STR_OS_ALPINE "Alpine"
#define STR_OS_ANNVIX "Annvix"
#define STR_OS_ARCH "Arch"
#define STR_OS_ARKLINUX "Arklinux"
Expand Down
2 changes: 2 additions & 0 deletions open-vm-tools/lib/misc/hostinfoPosix.c
Original file line number Diff line number Diff line change
Expand Up @@ -199,6 +199,7 @@ typedef struct {

static const DistroInfo distroArray[] = {
{ "ALT", "/etc/altlinux-release" },
{ "Alpine", "/etc/alpine-release" },
{ "Annvix", "/etc/annvix-release" },
{ "Arch", "/etc/arch-release" },
{ "Arklinux", "/etc/arklinux-release" },
Expand Down Expand Up @@ -1270,6 +1271,7 @@ HostinfoSetSuseShortName(const ShortNameSet *entry, // IN:

static const ShortNameSet shortNameArray[] = {
/* Long distro name Short distro name Short name set function */
{"alpine", STR_OS_ALPINE, HostinfoGenericSetShortName},
{"amazon", NULL, HostinfoSetAmazonShortName},
{"annvix", STR_OS_ANNVIX, HostinfoGenericSetShortName},
{"arch", STR_OS_ARCH, HostinfoGenericSetShortName},
Expand Down

0 comments on commit 4df08f3

Please sign in to comment.