Files
Richard W.M. Jones 363bbb7e9b lib: Return correct osinfo field for Windows 11
For Windows Client, we can only distinguish between Windows 10 and
Windows 11 using the build ID.  The product name in both cases is
"Windows 10 <something>", apparently intentionally.

References:
https://learn.microsoft.com/en-us/answers/questions/586619/windows-11-build-ver-is-still-10022000194.html
a263fe0b26/winsup/cygwin/wincap.cc (L429)
https://en.wikipedia.org/wiki/List_of_Microsoft_Windows_versions

After this fix, the output of virt-inspector changes to this, which is
a bit odd, but correct:

    <name>windows</name>
    <arch>x86_64</arch>
    <distro>windows</distro>
    <product_name>Windows 10 Pro</product_name>
    <product_variant>Client</product_variant>
    <major_version>10</major_version>
    <minor_version>0</minor_version>
    <windows_systemroot>/Windows</windows_systemroot>
    <windows_current_control_set>ControlSet001</windows_current_control_set>
    <osinfo>win11</osinfo>

Thanks: Yaakov Selkowitz
Reported-by: Yongkui Guo
Fixes: https://bugzilla.redhat.com/show_bug.cgi?id=2012658
Reviewed-by: Laszlo Ersek <lersek@redhat.com>
(cherry picked from commit 824c745748)
2022-12-02 11:01:06 +00:00
..
2020-03-06 19:32:32 +00:00
2021-01-28 14:04:29 +00:00
2020-08-24 16:24:38 +01:00
2022-03-09 09:28:02 +00:00
2020-03-06 19:32:32 +00:00
2021-12-09 13:46:28 +00:00
2021-04-08 11:12:17 +01:00
2021-04-08 11:12:17 +01:00
2022-03-09 09:28:02 +00:00
2021-04-08 11:12:17 +01:00
2022-12-02 11:00:59 +00:00
2021-04-08 11:12:17 +01:00
2020-03-06 19:32:32 +00:00