]> git.ipfire.org Git - thirdparty/open-vm-tools.git/commitdiff
GuestOS: Explicitly identify Flatcar Linux
authorKruti <kpendharkar@vmware.com>
Fri, 3 May 2024 16:05:44 +0000 (09:05 -0700)
committerKruti <kpendharkar@vmware.com>
Fri, 3 May 2024 16:05:44 +0000 (09:05 -0700)
We support a VMX guestOS string for Flatcar Linux ("flatcar-64").
Update the guest identification code to report Flatcar, rather than
generically (other linux <n> - 64).

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

index e078399875b28833a0d43cd78cced448c5418c51..0772f104e1b0a631be4bb2d839785898ff266e1e 100644 (file)
@@ -1415,6 +1415,7 @@ static const ShortNameSet shortNameArray[] = {
 /* Red Hat must come before the Enterprise Linux entry */
 { "enterprise linux",    NULL,                      HostinfoSetOracleShortName  },
 { "fedora",              STR_OS_FEDORA,             HostinfoGenericSetShortName },
+{ "flatcar",             STR_OS_FLATCAR,            HostinfoGenericSetShortName },
 { "gentoo",              STR_OS_GENTOO,             HostinfoGenericSetShortName },
 { "immunix",             STR_OS_IMMUNIX,            HostinfoGenericSetShortName },
 { "linux-from-scratch",  STR_OS_LINUX_FROM_SCRATCH, HostinfoGenericSetShortName },