From: Oliver Kurth Date: Wed, 10 Jun 2020 19:05:45 +0000 (-0700) Subject: Pick up the LSB distro file for ALT Linux X-Git-Tag: stable-11.2.0~157 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=c7f4a5150d398184062b4d9ddba18d2c481c37f1;p=thirdparty%2Fopen-vm-tools.git Pick up the LSB distro file for ALT Linux Improve the documentation of the Linux identification routine so others know that nothing needs to be changed in the field. Only VMware needs to add identification codes. https://github.com/vmware/open-vm-tools/pull/431 --- diff --git a/open-vm-tools/lib/misc/hostinfoPosix.c b/open-vm-tools/lib/misc/hostinfoPosix.c index d774d9502..5761e5baf 100644 --- a/open-vm-tools/lib/misc/hostinfoPosix.c +++ b/open-vm-tools/lib/misc/hostinfoPosix.c @@ -184,6 +184,7 @@ typedef struct { /* KEEP SORTED! (sort -d) */ static const DistroInfo distroArray[] = { + { "ALT", "/etc/altlinux-release" }, { "Annvix", "/etc/annvix-release" }, { "Arch", "/etc/arch-release" }, { "Arklinux", "/etc/arklinux-release" }, @@ -804,8 +805,17 @@ HostinfoESX(struct utsname *buf) // IN: * Returns distro information based on .vmx format (distroShort). * * Return value: - * Overwrited the short name if we recognise the OS. - * Otherwise leave the short name as it is. + * If the short name is officially supported (by VMware)- it's recognized + * by the code - it will be overwritten with the official identifying + * short name. + * + * If the short name is not one of the officially support ones, there + * is nothing to do. The default value is the officially supported + * identification for a generic Linux (otherLinux). No need to change + * any code. + * + * The long string and detailed data will fully identify what Linux + * is actually present. * * Side effects: * None