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 <[email protected]>
  • Loading branch information
ncopa committed Apr 7, 2022
1 parent cf21ccd commit f4ced29
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 @@ -295,6 +295,7 @@ Bool Gos_InSetArray(uint32 gos, const uint32 *set);
/* Linux */
#define STR_OS_ALMA_LINUX "almaLinux"
#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 @@ -201,6 +201,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 @@ -1254,6 +1255,7 @@ HostinfoSetSuseShortName(const ShortNameSet *entry, // IN:
static const ShortNameSet shortNameArray[] = {
/* Long distro name Short distro name Short name set function */
{ "almalinux", STR_OS_ALMA_LINUX, HostinfoGenericSetShortName },
{ "alpine", STR_OS_ALPINE, HostinfoGenericSetShortName},
{ "amazon", NULL, HostinfoSetAmazonShortName },
{ "annvix", STR_OS_ANNVIX, HostinfoGenericSetShortName },
{ "arch", STR_OS_ARCH, HostinfoGenericSetShortName },
Expand Down

0 comments on commit f4ced29

Please sign in to comment.