8d6890f068
virt-manager-2.1.0.tar.bz2 virtman-fix-env-script-interpreter.patch * Bash autocompletion support (Lin Ma, Cole Robinson) * UI and command line –vsock support (Slavomir Kaslev) * virt-xml: Add –os-variant option (Andrea Bolognani) * virt-install: use libosinfo cpu, mem, disk size defaults (Fabiano Fidencio) * virt-install: Better usage of libosinfo -unknown distro IDs (Fabiano Fidencio) * virt-install: More usage of libosinfo for ISO –location detection * virt-install: Add –location LOCATION,kernel=X,initrd=Y for pointing to kernel/initrd in media that virt-install/libosinfo fails to detect - Drop 25b88733-urldetect-Dont-overload-suse_content-variable.patch 9308bae3-util-Fix-typo-vpcu-vcpu.patch b8aff280-virtinst-quickfix-ubuntu-net-preseed-insert-cdrom-error.patch c30b3bc6-increase-timeout-for-vm-to-start.patch virtinst-use-latest-opensuse-version-when-unknown-media.patch OBS-URL: https://build.opensuse.org/package/show/Virtualization/virt-manager?expand=0&rev=456
45 lines
1.5 KiB
Diff
45 lines
1.5 KiB
Diff
References: bsc#1010060
|
|
|
|
Index: virt-manager-2.1.0/virtinst/urldetect.py
|
|
===================================================================
|
|
--- virt-manager-2.1.0.orig/virtinst/urldetect.py
|
|
+++ virt-manager-2.1.0/virtinst/urldetect.py
|
|
@@ -258,6 +258,12 @@ class _SUSEContent(object):
|
|
self.product_name.strip().rsplit(' ')[5][2])
|
|
distro_version = sle_version
|
|
|
|
+ # SUSE Container as a Service Platform
|
|
+ if "Container" in self.product_name:
|
|
+ distro_version = self.product_name.strip().rsplit(' ')[6]
|
|
+ elif "CaaS" in self.product_name:
|
|
+ distro_version = self.product_name.strip().rsplit(' ')[3]
|
|
+
|
|
return distro_version
|
|
|
|
|
|
@@ -544,6 +550,9 @@ class _SuseDistro(_RHELDistro):
|
|
# Tumbleweed 8 digit date
|
|
return "opensusetumbleweed"
|
|
|
|
+ if self._variant_prefix.startswith(("caasp")):
|
|
+ return self._variant_prefix + distro_version
|
|
+
|
|
if int(version) < 10:
|
|
return self._variant_prefix + "9"
|
|
|
|
@@ -616,6 +625,14 @@ class _OpensuseDistro(_SuseDistro):
|
|
famregex = ".*openSUSE.*"
|
|
|
|
|
|
+class _CAASPDistro(_SuseDistro):
|
|
+ PRETTY_NAME = "SLES"
|
|
+ matching_distros = ["caasp"]
|
|
+ _variant_prefix = "caasp"
|
|
+ _suse_regex = [".*SUSE Container as a Service Platform*", ".*SUSE CaaS Platform*"]
|
|
+ famregex = ".*SUSE Container as a Service Platform.*"
|
|
+
|
|
+
|
|
class _OESDistro(_SuseDistro):
|
|
PRETTY_NAME = "OES"
|
|
matching_distros = ["oes"]
|