[virt-tools-list] virt-install: fix SLES11 installation on s390x
Cole Robinson
crobinso at redhat.com
Mon Jan 21 20:42:50 UTC 2019
On 01/18/2019 06:58 AM, Christian Borntraeger wrote:
> self._os_variant returns sles11sp4 sles11sp3 and so on.
> Lets match those as well to pickup the right kernels.
>
> Signed-off-by: Christian Borntraeger <borntraeger at de.ibm.com>
> Reviewed-by: Boris Fiuczynski <fiuczy at linux.ibm.com>
> ---
> virtinst/urldetect.py | 2 +-
> 1 file changed, 1 insertion(+), 1 deletion(-)
>
> diff --git a/virtinst/urldetect.py b/virtinst/urldetect.py
> index 2351f8d5..f96dc0f3 100644
> --- a/virtinst/urldetect.py
> +++ b/virtinst/urldetect.py
> @@ -539,7 +539,7 @@ class SuseDistro(Distro):
> "boot/%s/initrd-xen" % tree_arch))
>
> if (tree_arch == "s390x" and
> - (self._os_variant == "sles11" or self._os_variant == "sled11")):
> + str(self._os_variant).startswith(("sles11", "sled11"))):
> self._kernel_paths.append(
> ("boot/s390x/vmrdr.ikr", "boot/s390x/initrd"))
>
>
Thanks, pushed now. Looks like I was missing a SLES11 s390x test case in
my local media test suite.
- Cole
More information about the virt-tools-list
mailing list