mirror of
https://github.com/virt-manager/virt-manager.git
synced 2025-02-02 09:47:16 +03:00
add ALT Linux support
This commit is contained in:
parent
ff57d636d7
commit
6e4bafc58c
@ -263,6 +263,10 @@ ftp://ftp.uwsg.indiana.edu/linux/mandrake/official/2009.0/i586/
|
||||
|
||||
ftp://distrib-coffee.ipsl.jussieu.fr/pub/linux/Mageia/distrib/1
|
||||
|
||||
=item ALT Linux
|
||||
|
||||
ftp://ftp.altlinux.org/pub/distributions/ALTLinux/
|
||||
|
||||
=back
|
||||
|
||||
=item --pxe
|
||||
|
@ -93,6 +93,8 @@ def _storeForDistro(fetcher, baseuri, typ, progresscb, arch, distro=None,
|
||||
stores.append(MandrivaDistro)
|
||||
if distro == "mageia" or distro is None:
|
||||
stores.append(MageiaDistro)
|
||||
if distro == "altlinux" or distro is None:
|
||||
stores.append(ALTLinuxDistro)
|
||||
if distro == "solaris" or distro is None:
|
||||
stores.append(SolarisDistro)
|
||||
if distro == "solaris" or distro is None:
|
||||
@ -1029,6 +1031,30 @@ class MandrivaDistro(Distro):
|
||||
class MageiaDistro(MandrivaDistro):
|
||||
name = "Mageia"
|
||||
|
||||
class ALTLinuxDistro(Distro):
|
||||
|
||||
name = "ALT Linux"
|
||||
os_type = "linux"
|
||||
_boot_iso_paths = [ ("altinst", "live") ]
|
||||
_hvm_kernel_paths = [ ("syslinux/alt0/vmlinuz", "syslinux/alt0/full.cz")]
|
||||
_xen_kernel_paths = []
|
||||
|
||||
def isValidStore(self, fetcher, progresscb):
|
||||
# Don't support any paravirt installs
|
||||
if self.type is not None and self.type != "hvm":
|
||||
return False
|
||||
|
||||
if not fetcher.hasFile(".disk/info"):
|
||||
return False
|
||||
|
||||
if self._fetchAndMatchRegex(fetcher, progresscb, ".disk/info",
|
||||
".*%s.*" % self.name):
|
||||
logging.debug("Detected a %s distro" % self.name)
|
||||
return True
|
||||
|
||||
return False
|
||||
|
||||
|
||||
# Solaris and OpenSolaris distros
|
||||
|
||||
|
||||
|
@ -476,6 +476,16 @@ OS_TYPES = {
|
||||
},
|
||||
},
|
||||
|
||||
"altlinux": {
|
||||
"label": "ALT Linux",
|
||||
"distro": "altlinux",
|
||||
"supported": True,
|
||||
"devices" : {
|
||||
DISK : VIRTIO_DISK,
|
||||
NET : VIRTIO_NET,
|
||||
INPUT: USB_TABLET,
|
||||
}
|
||||
},
|
||||
|
||||
"debianetch": {
|
||||
"label": "Debian Etch",
|
||||
|
Loading…
x
Reference in New Issue
Block a user