def __init__(self, conn, logfile=None): BaseChrootInstaller.__init__(self, conn) self.conn = conn self.cursor = StatementCursor(self.conn) self._mounted = None self._installer_ready = False self._base_ready = False if logfile is None: self.set_logfile(logfile) if logfile is False: pass
def __init__(self, conn, logfile=None): BaseChrootInstaller.__init__(self, conn) self.conn = conn self.cursor = StatementCursor(self.conn) self._mounted = None self._installer_ready = False self._base_ready = False if logfile is None: self.set_logfile(logfile) if logfile and type(logfile) is str: if not os.environ.has_key('PAELLA_LOGFILE'): os.environ['PAELLA_LOGFILE'] = logfile self.set_logfile(logfile) if logfile is False: pass
def __init__(self, conn): BaseChrootInstaller.__init__(self, conn) self.machine = MachineHandler(self.conn) self.processes = DEFAULT_PROCESSES self._process_map = { 'setup_disks' : self.setup_disks, 'mount_target' : self.mount_target, 'bootstrap' : self.bootstrap_target, 'make_device_entries' : self.make_device_entries, 'apt_sources_installer' : self.setup_apt_sources_installer, 'ready_base' : self.ready_base_for_install, 'mount_target_proc' : self.mount_target_proc, 'install' : self.install_to_target, 'install_fstab' : self.install_fstab, 'install_modules' : self.install_modules, 'install_kernel' : self.install_kernel, 'apt_sources_final' : self.setup_apt_sources_final, 'umount_target_proc' : self.umount_target_proc } self.helper = None
def __init__(self, conn): BaseChrootInstaller.__init__(self, conn) self.machine = MachineHandler(self.conn) self.processes = DEFAULT_PROCESSES self._process_map = { 'setup_disks': self.setup_disks, 'mount_target': self.mount_target, 'bootstrap': self.bootstrap_target, 'make_device_entries': self.make_device_entries, 'apt_sources_installer': self.setup_apt_sources_installer, 'ready_base': self.ready_base_for_install, 'mount_target_proc': self.mount_target_proc, 'install': self.install_to_target, 'install_fstab': self.install_fstab, 'install_modules': self.install_modules, 'install_kernel': self.install_kernel, 'apt_sources_final': self.setup_apt_sources_final, 'umount_target_proc': self.umount_target_proc } self.helper = None
def _check_bootstrap(self): self._check_mounted() BaseChrootInstaller._check_bootstrap(self)