]> git.ipfire.org Git - thirdparty/open-vm-tools.git/commitdiff
Pick up the LSB distro file for ALT Linux
authorJohn Wolfe <jwolfe@vmware.com>
Wed, 19 Aug 2020 17:01:17 +0000 (10:01 -0700)
committerJohn Wolfe <jwolfe@vmware.com>
Wed, 19 Aug 2020 17:01:17 +0000 (10:01 -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/AUTHORS
open-vm-tools/lib/misc/hostinfoPosix.c

index 62e58e2d26f5d61446d8529ce78dd13b2703f907..b982c7f6f4784962522a143d643549b2a7b5f03c 100644 (file)
@@ -59,3 +59,5 @@ Josh Paetzel    Changes to vmmemctl.ko and vmblock.ko for FreeBSD 13.0 API chang
 Josh Paetzel    FreeBSD has removed some vnops flags that have never been used.
                 - https://github.com/vmware/open-vm-tools/pull/403
 
+Alexey Shabalin Add recognition of ALT Linux distributions
+                - https://github.com/vmware/open-vm-tools/pull/431
index 26c3efd8918f1d994a1ac8e298f495c66ed2e13b..7ce6dc1b339a57a1a52997bdc3b8979a4a025eaf 100644 (file)
@@ -1,5 +1,5 @@
 /*********************************************************
- * Copyright (C) 1998-2019 VMware, Inc. All rights reserved.
+ * Copyright (C) 1998-2020 VMware, Inc. All rights reserved.
  *
  * This program is free software; you can redistribute it and/or modify it
  * under the terms of the GNU Lesser General Public License as published
@@ -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,23 @@ 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.
+ *      The default value of the "short name", upon entry to this routine, is
+ *      the officially supported identification for a generic Linux
+ *      (otherLinux).
+ *
+ *      If the distro is officially supported (by VMware)- it's recognized
+ *      the code of this routine - the "short name" will be overwritten with
+ *      the officially supported "short name" of the distro. Only VMware adds
+ *      distros and related codes to this routine.
+ *
+ *      An unsupported "short name" will be ignored by the rest of the
+ *      software stack.
+ *
+ *      If the short name is not one of the officially support ones, the
+ *      default value will be left in place.
+ *
+ *      The "long name" and detailed data will fully identify what Linux
+ *      is actually present.
  *
  * Side effects:
  *      None