add ALT Linux support

This commit is contained in:
Алексей Шабалин 2013-08-08 13:28:43 +04:00 committed by Cole Robinson
parent ff57d636d7
commit 6e4bafc58c
3 changed files with 40 additions and 0 deletions

View File

@ -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

View File

@ -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

View File

@ -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",