2016-12-01 14:59:53 +00:00
|
|
|
diff --git a/lib/include/guest_os.h b/open-vm-tools/lib/include/guest_os.h
|
|
|
|
index ef202e3..c7a105d 100644
|
|
|
|
--- a/lib/include/guest_os.h
|
|
|
|
+++ b/lib/include/guest_os.h
|
|
|
|
@@ -238,6 +238,7 @@ Bool Gos_InSetArray(uint32 gos, const uint32 *set);
|
2015-08-21 18:29:09 +01:00
|
|
|
#define STR_OS_MANDRAKE_FULL "Mandrake Linux"
|
|
|
|
#define STR_OS_MANDRIVA "mandriva"
|
|
|
|
#define STR_OS_MKLINUX "MkLinux"
|
|
|
|
+#define STR_OS_NIXOS "NixOS"
|
|
|
|
#define STR_OS_NOVELL "nld9"
|
|
|
|
#define STR_OS_NOVELL_FULL "Novell Linux Desktop 9"
|
2016-12-01 14:59:53 +00:00
|
|
|
#define STR_OS_ORACLE6 "oraclelinux6"
|
|
|
|
diff --git a/lib/misc/hostinfoPosix.c b/open-vm-tools/lib/misc/hostinfoPosix.c
|
|
|
|
index 0f55070..2d8467c 100644
|
|
|
|
--- a/lib/misc/hostinfoPosix.c
|
|
|
|
+++ b/lib/misc/hostinfoPosix.c
|
|
|
|
@@ -195,6 +195,7 @@ static const DistroInfo distroArray[] = {
|
2015-08-21 18:29:09 +01:00
|
|
|
{"Mandrake", "/etc/mandrake-release"},
|
|
|
|
{"Mandriva", "/etc/mandriva-release"},
|
2016-04-23 02:06:25 +01:00
|
|
|
{"MkLinux", "/etc/mklinux-release"},
|
2015-08-21 18:29:09 +01:00
|
|
|
+ {"NixOS", "/etc/os-release"},
|
2016-04-23 02:06:25 +01:00
|
|
|
{"Novell", "/etc/nld-release"},
|
|
|
|
{"OracleLinux", "/etc/oracle-release"},
|
|
|
|
{"Photon", "/etc/lsb-release"},
|
2016-12-01 14:59:53 +00:00
|
|
|
@@ -554,6 +555,8 @@ HostinfoGetOSShortName(char *distro, // IN: full distro name
|
|
|
|
}
|
|
|
|
} else if (strstr(distroLower, "mandrake")) {
|
|
|
|
Str_Strcpy(distroShort, STR_OS_MANDRAKE, distroShortSize);
|
2015-08-21 18:29:09 +01:00
|
|
|
+ } else if (strstr(distroLower, "nixos")) {
|
|
|
|
+ Str_Strcpy(distroShort, STR_OS_NIXOS, distroShortSize);
|
2016-12-01 14:59:53 +00:00
|
|
|
} else if (strstr(distroLower, "turbolinux")) {
|
|
|
|
Str_Strcpy(distroShort, STR_OS_TURBO, distroShortSize);
|
|
|
|
} else if (strstr(distroLower, "sun")) {
|