2021-11-23 23:41:31 +01:00
|
|
|
References: bsc#1192238, jsc#SLE-17764
|
|
|
|
|
2022-03-03 05:17:21 +01:00
|
|
|
Index: virt-manager-3.3.0/virtinst/install/urldetect.py
|
2022-01-13 21:53:05 +01:00
|
|
|
===================================================================
|
2022-03-03 05:17:21 +01:00
|
|
|
--- virt-manager-3.3.0.orig/virtinst/install/urldetect.py
|
|
|
|
+++ virt-manager-3.3.0/virtinst/install/urldetect.py
|
|
|
|
@@ -724,6 +724,26 @@ class _OESDistro(_SuseDistro):
|
2021-11-23 23:41:31 +01:00
|
|
|
famregex = ".*Open Enterprise Server.*"
|
|
|
|
|
|
|
|
|
|
|
|
+class _OLDistro(_DistroTree):
|
|
|
|
+ PRETTY_NAME = "Oracle Linux"
|
|
|
|
+ matching_distros = ["ol"]
|
|
|
|
+ _variant_prefix = "ol"
|
|
|
|
+
|
|
|
|
+ @classmethod
|
|
|
|
+ def is_valid(cls, cache):
|
|
|
|
+ famregex = ".*Oracle Linux.*"
|
|
|
|
+ if cache.treeinfo_family_regex(famregex):
|
|
|
|
+ return True
|
|
|
|
+
|
|
|
|
+ def _detect_version(self):
|
|
|
|
+ if self.cache.treeinfo_version: # pragma: no cover
|
2022-01-13 21:53:05 +01:00
|
|
|
+ version, update = self.cache.split_version()
|
|
|
|
+ # Beginning with oracle 8 they add an extra '.0' which we ignore
|
|
|
|
+ olname = self._variant_prefix + str(version) + "." + str(update)
|
2021-11-23 23:41:31 +01:00
|
|
|
+ if OSDB.lookup_os(olname):
|
|
|
|
+ return olname
|
|
|
|
+
|
|
|
|
+
|
|
|
|
class _DebianDistro(_DistroTree):
|
|
|
|
# ex. http://ftp.egr.msu.edu/debian/dists/sarge/main/installer-i386/
|
|
|
|
# daily builds: https://d-i.debian.org/daily-images/amd64/
|
2022-03-03 05:17:21 +01:00
|
|
|
@@ -950,6 +970,7 @@ def _build_distro_list(osobj):
|
2021-11-23 23:41:31 +01:00
|
|
|
_FedoraDistro,
|
|
|
|
_RHELDistro,
|
|
|
|
_CentOSDistro,
|
|
|
|
+ _OLDistro,
|
|
|
|
_SLEDistro,
|
|
|
|
_SLESDistro,
|
|
|
|
_SLEHPCDistro,
|