[virt-tools-list] [PATCH] urlfetcher: Enable Ubuntu 16.04 s390x detection

Kevin Zhao kevin.zhaoshuai at gmail.com
Mon Apr 25 07:48:37 UTC 2016


2016-04-25 15:13 GMT+08:00 Leno Hou <lenohou at gmail.com>:

> Signed-off-by: Leno Hou <lenohou at gmail.com>
> CC: Kevin Zhao < kevin.zhaoshuai at gmail.com>
> ---
>  virtinst/urlfetcher.py | 9 +++++++++
>  1 file changed, 9 insertions(+)
>
> diff --git a/virtinst/urlfetcher.py b/virtinst/urlfetcher.py
> index 7f9da64..5d3f94e 100644
> --- a/virtinst/urlfetcher.py
> +++ b/virtinst/urlfetcher.py
> @@ -1158,6 +1158,10 @@ class UbuntuDistro(DebianDistro):
>      name = "Ubuntu"
>      urldistro = "ubuntu"
>
> +    _boot_iso_paths = []
> +    _hvm_kernel_paths = []
> +    _xen_kernel_paths = []
> +
>

Here there three parameters maybe appear in the class "DebianDistro", so I
think
you don't need to add the the parameters here.

> def isValidStore(self):
>          if self.fetcher.hasFile("%s/MANIFEST" % self._url_prefix):
>              # For regular trees
> @@ -1169,6 +1173,11 @@ class UbuntuDistro(DebianDistro):
>              self._set_media_paths()
>              filename = "%s/netboot/version.info" % self._url_prefix
>              regex = "%s*" % self.name
> +        elif self.fetcher.hasFile(".disk/info") and self.arch =="s390x":
> +            self._hvm_kernel_paths += [("boot/kernel.ubuntu",
> "boot/initrd.ubuntu")]
> +            self._xen_kernel_paths += [("boot/kernel.ubuntu",
> "boot/initrd.ubuntu")]
> +            filename = ".disk/info"
> +            regex = "%s*" % self.name
>          else:
>              return False
>
> --
> 1.9.1
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://listman.redhat.com/archives/virt-tools-list/attachments/20160425/bc5ed21a/attachment.htm>


More information about the virt-tools-list mailing list