lib/inspect-osinfo.c: Add Windows Server 2025 osinfo

The guest was found to have these inspection fields:

    type: windows
    distro: windows
    product_name: Windows Server 2025 Standard
    product_variant: Server
    version: 10.0
    arch: x86_64
    hostname: WIN-84V4KKQ30SM
    build ID: 26080
    windows_systemroot: /Windows
    windows_software_hive: /Windows/System32/config/SOFTWARE
    windows_system_hive: /Windows/System32/config/SYSTEM
    windows_current_control_set: ControlSet001

Reported-by: Ming Xie
Fixes: https://issues.redhat.com/browse/RHEL-62935
This commit is contained in:
Richard W.M. Jones
2024-10-17 08:59:49 +01:00
parent c25ff1a802
commit 0f489f8eec

View File

@@ -142,7 +142,9 @@ guestfs_impl_inspect_get_osinfo (guestfs_h *g, const char *root)
switch (minor) {
case 0:
if (strstr (product_variant, "Server")) {
if (strstr (product_name, "2022"))
if (strstr (product_name, "2025"))
return safe_strdup (g, "win2k25");
else if (strstr (product_name, "2022"))
return safe_strdup (g, "win2k22");
else if (strstr (product_name, "2019"))
return safe_strdup (g, "win2k19");