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