Exemplo n.º 1
0
 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
Exemplo n.º 2
0
 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
Exemplo n.º 3
0
 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
Exemplo n.º 4
0
 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
Exemplo n.º 5
0
 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
Exemplo n.º 6
0
 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
Exemplo n.º 7
0
 def _check_bootstrap(self):
     self._check_mounted()
     BaseChrootInstaller._check_bootstrap(self)
Exemplo n.º 8
0
 def _check_bootstrap(self):
     self._check_mounted()
     BaseChrootInstaller._check_bootstrap(self)