mirror of
https://github.com/libguestfs/libguestfs.git
synced 2026-03-22 07:03:38 +00:00
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:
@@ -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");
|
||||
|
||||
Reference in New Issue
Block a user