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

Cole Robinson crobinso at redhat.com
Wed Apr 27 14:31:41 UTC 2016


I pushed it yesterday actually :) sorry, forgot to send a mail

Thanks,
Cole

On 04/27/2016 01:47 AM, Kevin Zhao wrote:
> Hi Cole && Leno,
>      I have also tested this patch and works fine with me~I think it is a
> proper way, could you help to merge patch ? 
> 
> 2016-04-26 16:10 GMT+08:00 Leno Hou <lenohou at gmail.com
> <mailto:lenohou at gmail.com>>:
> 
>     Signed-off-by: Leno Hou <lenohou at gmail.com <mailto:lenohou at gmail.com>>
>     CC: Kevin Zhao <kevin.zhaoshuai at gmail.com <mailto:kevin.zhaoshuai at gmail.com>>
>     ---
>      virtinst/urlfetcher.py | 5 +++++
>      1 file changed, 5 insertions(+)
> 
>     diff --git a/virtinst/urlfetcher.py b/virtinst/urlfetcher.py
>     index 7f9da64..e329902 100644
>     --- a/virtinst/urlfetcher.py
>     +++ b/virtinst/urlfetcher.py
>     @@ -1169,6 +1169,11 @@ class UbuntuDistro(DebianDistro):
>                  self._set_media_paths()
>                  filename = "%s/netboot/version.info <http://version.info>" %
>     self._url_prefix
>                  regex = "%s*" % self.name <http://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 <http://self.name>
>              else:
>                  return False
> 
>     --
>     1.9.1
> 
> 




More information about the virt-tools-list mailing list