diff --git a/man/virt-install.pod b/man/virt-install.pod index 153345f08..a19a01fdd 100644 --- a/man/virt-install.pod +++ b/man/virt-install.pod @@ -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 diff --git a/virtinst/OSDistro.py b/virtinst/OSDistro.py index fc284481f..575bb5b89 100644 --- a/virtinst/OSDistro.py +++ b/virtinst/OSDistro.py @@ -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 diff --git a/virtinst/osdict.py b/virtinst/osdict.py index 0fde37a21..5f84b7ae1 100644 --- a/virtinst/osdict.py +++ b/virtinst/osdict.py @@ -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",