28 lines
1.2 KiB
Diff
28 lines
1.2 KiB
Diff
References: bsc#1194323
|
|
Windows server 2k16, 2k19, 2k22, and 2k25 have the volume ID
|
|
so libosinfo can't really tell them apart.
|
|
This hack after detecting a windows ISO just looks at the
|
|
ISO filename for an extra clue.
|
|
|
|
Index: virt-manager-5.1.0/virtinst/install/installer.py
|
|
===================================================================
|
|
--- virt-manager-5.1.0.orig/virtinst/install/installer.py
|
|
+++ virt-manager-5.1.0/virtinst/install/installer.py
|
|
@@ -546,6 +546,16 @@ class Installer:
|
|
osguess = OSDB.guess_os_by_iso(self.cdrom)
|
|
if osguess:
|
|
ret = osguess[0]
|
|
+ # Hack because windows ISOs contain same volume ID
|
|
+ if ret and ret.startswith("win"):
|
|
+ if "windows_server_2025" in self.cdrom:
|
|
+ ret = "win2k25"
|
|
+ elif "windows_server_2022" in self.cdrom:
|
|
+ ret = "win2k22"
|
|
+ elif "windows_server_2019" in self.cdrom:
|
|
+ ret = "win2k19"
|
|
+ elif "windows_server_2016" in self.cdrom:
|
|
+ ret = "win2k16"
|
|
else:
|
|
log.debug("No media for distro detection.")
|
|
|