Skip to content

Commit f4ced29

Browse files
committed
lib/misc: Recognize Alpine Linux
Signed-off-by: Natanael Copa <[email protected]>
1 parent cf21ccd commit f4ced29

File tree

2 files changed

+3
-0
lines changed

2 files changed

+3
-0
lines changed

open-vm-tools/lib/include/guest_os.h

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -295,6 +295,7 @@ Bool Gos_InSetArray(uint32 gos, const uint32 *set);
295295
/* Linux */
296296
#define STR_OS_ALMA_LINUX "almaLinux"
297297
#define STR_OS_AMAZON_LINUX "amazonlinux"
298+
#define STR_OS_ALPINE "Alpine"
298299
#define STR_OS_ANNVIX "Annvix"
299300
#define STR_OS_ARCH "Arch"
300301
#define STR_OS_ARKLINUX "Arklinux"

open-vm-tools/lib/misc/hostinfoPosix.c

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -201,6 +201,7 @@ typedef struct {
201201

202202
static const DistroInfo distroArray[] = {
203203
{ "ALT", "/etc/altlinux-release" },
204+
{ "Alpine", "/etc/alpine-release" },
204205
{ "Annvix", "/etc/annvix-release" },
205206
{ "Arch", "/etc/arch-release" },
206207
{ "Arklinux", "/etc/arklinux-release" },
@@ -1254,6 +1255,7 @@ HostinfoSetSuseShortName(const ShortNameSet *entry, // IN:
12541255
static const ShortNameSet shortNameArray[] = {
12551256
/* Long distro name Short distro name Short name set function */
12561257
{ "almalinux", STR_OS_ALMA_LINUX, HostinfoGenericSetShortName },
1258+
{ "alpine", STR_OS_ALPINE, HostinfoGenericSetShortName},
12571259
{ "amazon", NULL, HostinfoSetAmazonShortName },
12581260
{ "annvix", STR_OS_ANNVIX, HostinfoGenericSetShortName },
12591261
{ "arch", STR_OS_ARCH, HostinfoGenericSetShortName },

0 commit comments

Comments
 (0)