]> git.ipfire.org Git - thirdparty/open-vm-tools.git/commitdiff
Pick up the LSB distro file for ALT Linux
authorOliver Kurth <okurth@vmware.com>
Wed, 10 Jun 2020 19:05:45 +0000 (12:05 -0700)
committerOliver Kurth <okurth@vmware.com>
Wed, 10 Jun 2020 19:05:45 +0000 (12:05 -0700)
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

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

index d774d9502736bdd43865391858d75658abfa232d..5761e5baf276cd41716aa6fc3565d40d4fb4f28b 100644 (file)
@@ -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