https://bugzilla.redhat.com/show_bug.cgi?id=2012658

We don't currently detect the correct version for Windows 11 (client,
server is OK).  After some discussion it turns out the accepted way to
do this is to look at the Windows build ID.

So add some code in the daemon to grab the build ID from the
Windows registry and expose it through a new API 
("guestfs_inspect_get_build_id")
and adjust the osinfo code on the library side accordingly.

Because, at least in theory, Linux distros could have build IDs, I
didn't call the API "guestfs_inspect_windows_...".  There is a
possible build ID field in /etc/os-release, although it seems to be
unloved.

This fixes the <osinfo> field.  I intentionally did not adjust either
the Windows version (still 10.0) nor the product name (which is
completely bogus, but apparently how Microsoft intended it to be).

Rich.


_______________________________________________
Libguestfs mailing list
Libguestfs@redhat.com
https://listman.redhat.com/mailman/listinfo/libguestfs

Reply via email to