changeset: 406:5f10c7c171af user: "Daniel P. Berrange " date: Mon Apr 21 18:05:55 2008 -0400 files: virtinst/OSDistro.py description: Fix fetching of hvm kernel/initrds diff -r 6462dfd3e606 -r 5f10c7c171af virtinst/OSDistro.py --- a/virtinst/OSDistro.py Tue Apr 08 15:35:49 2008 -0400 +++ b/virtinst/OSDistro.py Mon Apr 21 18:05:55 2008 -0400 @@ -79,7 +79,7 @@ initrdpath = self.treeinfo.get("images-%s" % type, "initrd") else: # fall back to old code - if self.type is None: + if self.type is None or self.type == "hvm": kernelpath = "images/pxeboot/vmlinuz" initrdpath = "images/pxeboot/initrd.img" else: @@ -359,7 +359,7 @@ class DebianDistro(Distro): def isValidStore(self, fetcher, progresscb): # Don't support any paravirt installs - if self.type is not None: + if self.type is not None and self.type != "hvm": return False file = None @@ -400,21 +400,21 @@ class UbuntuDistro(Distro): def isValidStore(self, fetcher, progresscb): # Don't support any paravirt installs - if self.type is not None: + if self.type is not None and self.type != "hvm": return False return False class GentooDistro(Distro): def isValidStore(self, fetcher, progresscb): # Don't support any paravirt installs - if self.type is not None: + if self.type is not None and self.type != "hvm": return False return False class MandrivaDistro(Distro): def isValidStore(self, fetcher, progresscb): # Don't support any paravirt installs - if self.type is not None: + if self.type is not None and self.type != "hvm": return False # Mandriva websites / media appear to have a VERSION