630
630
os_type = "linux"
631
631
_boot_iso_paths = [ "boot/boot.iso" ]
633
def __init__(self, arch, uri, vmtype=None, scratchdir=None):
634
Distro.__init__(self, arch, uri, vmtype, scratchdir)
633
def __init__(self, uri, arch, vmtype=None, scratchdir=None):
634
Distro.__init__(self, uri, arch, vmtype, scratchdir)
635
635
if re.match(r'i[4-9]86', arch):
636
636
self.arch = 'i386'
638
# Tested with Opensuse 10, 11, and sles 10
644
# Tested with Opensuse >= 10.2, 11, and sles 10
639
645
self._hvm_kernel_paths = [ ("boot/%s/loader/linux" % self.arch,
640
646
"boot/%s/loader/initrd" % self.arch) ]
647
# Tested with Opensuse 10.0
648
self._hvm_kernel_paths.append(("boot/loader/%s" % oldkern,
649
"boot/loader/%s" % oldinit))
641
651
# Matches Opensuse > 10.2 and sles 10
642
652
self._xen_kernel_paths = [ ("boot/%s/vmlinuz-xen" % self.arch,
643
653
"boot/%s/initrd-xen" % self.arch) ]
858
868
os_type = "linux"
860
870
def __init__(self, uri, arch, vmtype=None, scratchdir=None):
861
Distro.__init__(self, arch, uri, vmtype, scratchdir)
871
Distro.__init__(self, uri, arch, vmtype, scratchdir)
862
872
if uri.count("installer-i386"):
863
873
self._treeArch = "i386"
864
874
elif uri.count("installer-amd64"):