def __init__(self, conn, image, boot_index=None): Installer.__init__(self, conn) self._image = image # Set boot _boot_caps/_boot_parameters if boot_index is None: self._boot_caps = match_boots(self.conn.caps, self.image.domain.boots) if self._boot_caps is None: raise RuntimeError(_("Could not find suitable boot " "descriptor for this host")) else: if (boot_index < 0 or (boot_index + 1) > len(image.domain.boots)): raise ValueError(_("boot_index out of range.")) self._boot_caps = image.domain.boots[boot_index] # Set up internal caps.guest object self._guest = self.conn.caps.guestForOSType(self.boot_caps.type, self.boot_caps.arch) if self._guest is None: raise RuntimeError(_("Unsupported virtualization type: %s %s" % (self.boot_caps.type, self.boot_caps.arch))) self._domain = self._guest.bestDomainType()
def __init__(self, conn, image, boot_index=None): Installer.__init__(self, conn) self._image = image # Set boot _boot_caps/_boot_parameters if boot_index is None: self._boot_caps = match_boots(self.conn.caps, self.image.domain.boots) if self._boot_caps is None: raise RuntimeError(_("Could not find suitable boot " "descriptor for this host")) else: if (boot_index < 0 or (boot_index + 1) > len(image.domain.boots)): raise ValueError(_("boot_index out of range.")) self._boot_caps = image.domain.boots[boot_index] # Set up internal caps.guest object self._guest, self._domain = self.conn.caps.guest_lookup( os_type=self.boot_caps.type, arch=self.boot_caps.arch)
def __init__(self, *args, **kwargs): Installer.__init__(self, *args, **kwargs) self.livecd = False self._location_is_path = True
def __init__(self, *args, **kwargs): Installer.__init__(self, *args, **kwargs) self.livecd = False