mirror of
https://github.com/libguestfs/libguestfs.git
synced 2026-03-22 07:03:38 +00:00
v2v: -o libvirt: write win2k19 osinfo ID
When writing the libosinfo metadata in the libvirt XML, use the newly added (in osinfo-db) ID for Windows Server 2019; sadly, this version of Windows has the same version as Windows Server 2016, so distinguish it by looking at its product name.
This commit is contained in:
@@ -124,6 +124,11 @@ let get_osinfo_id = function
|
||||
| { i_type = "windows"; i_major_version = 6; i_minor_version = 3 } ->
|
||||
Some "http://microsoft.com/win/8.1"
|
||||
|
||||
| { i_type = "windows"; i_major_version = 10; i_minor_version = 0;
|
||||
i_product_variant = "Server"; i_product_name = product }
|
||||
when String.find product "2019" >= 0 ->
|
||||
Some "http://microsoft.com/win/2k19"
|
||||
|
||||
| { i_type = "windows"; i_major_version = 10; i_minor_version = 0;
|
||||
i_product_variant = "Server" } ->
|
||||
Some "http://microsoft.com/win/2k16"
|
||||
|
||||
Reference in New Issue
Block a user