Пример #1
0
 def __init__(self, conn=None, cfg=None):
     self.conn = conn
     UmlChroot.__init__(self, cfg=cfg)
     self.options['paella_action'] = 'install'
     paellarc = path(self.cfg['paellarc']).expand()
     self.paellarc = PaellaConfig(files=[paellarc])
     self.options['paellarc'] = paellarc
Пример #2
0
 def __init__(self, conn=None, cfg=None):
     self.conn = conn
     UmlChroot.__init__(self, cfg=cfg)
     self.options['paella_action'] = 'install'
     paellarc = path(self.cfg['paellarc']).expand()
     self.paellarc = PaellaConfig(files=[paellarc])
     self.options['paellarc'] = paellarc
Пример #3
0
 def __init__(self, suite, rootimage=None, cfg=None):
     if rootimage is None:
         rootimage = suite + '.base'
     if cfg is None:
         cfg = PaellaConfig()
     UmlChroot.__init__(self, cfg)
     self.set_targetimage(rootimage)
     o = self.options
     o['paellasuite'] = suite
     o['paella_action'] = 'bootstrap'
Пример #4
0
 def __init__(self, suite, rootimage=None, cfg=None):
     if rootimage is None:
         rootimage = suite + '.base'
     if cfg is None:
         cfg = PaellaConfig()
     UmlChroot.__init__(self, cfg)
     self.set_targetimage(rootimage)
     o = self.options
     o['paellasuite'] = suite
     o['paella_action'] = 'bootstrap'
Пример #5
0
def extract(tarball, basefile=None, size=None):
    cfg = UmlConfig()
    u = UmlChroot(cfg)
    u.options['paella_system_tarball'] = tarball
    u.options['paella_action'] = 'extract'
    u.options['devfs'] = 'mount'
    u.set_targetimage(basefile)
    if size is None:
        size = cfg['basefile_size']
    create_sparse_file(basefile, size=size)
    u.run_uml()
Пример #6
0
def backup(machine):
    cfg = UmlConfig(machine)
    basefile = cfg['basefile']
    backup = UmlChroot(cfg)
    backup.set_targetimage(basefile)
    backup.options['backup_target'] = machine
    backup.options['paella_action'] = 'backup'
    backup.run_uml()
Пример #7
0
def extract(tarball, basefile=None, size=None):
    cfg = UmlConfig()
    u = UmlChroot(cfg)
    u.options['paella_system_tarball'] = tarball
    u.options['paella_action'] = 'extract'
    u.options['devfs'] = 'mount'
    u.set_targetimage(basefile)
    if size is None:
        size = cfg['basefile_size']
    create_sparse_file(basefile, size=size)
    u.run_uml()
Пример #8
0
 def backup_machine(self, basefile=None):
     self._check_current()
     machine = self.current
     cfg = self._make_config(machine)
     chroot = UmlChroot(cfg)
     if basefile is None:
         basefile = self._get_basefile(cfg, machine)
     chroot.set_targetimage(basefile)
     chroot.options['backup_target'] = machine
     chroot.options['paella_action'] = 'backup'
     chroot.run_uml()
Пример #9
0
def extract(tarball, basefile=None, size=None):
    cfg = UmlConfig()
    u = UmlChroot(cfg)
    u.options["paella_system_tarball"] = tarball
    u.options["paella_action"] = "extract"
    u.options["devfs"] = "mount"
    u.set_targetimage(basefile)
    if size is None:
        size = cfg["basefile_size"]
    create_sparse_file(basefile, size=size)
    u.run_uml()
Пример #10
0
def backup(machine):
    cfg = UmlConfig(machine)
    basefile = cfg['basefile']
    backup = UmlChroot(cfg)
    backup.set_targetimage(basefile)
    backup.options['backup_target'] = machine
    backup.options['paella_action'] = 'backup'
    backup.run_uml()
Пример #11
0
def backup(machine):
    cfg = UmlConfig(machine)
    basefile = cfg["basefile"]
    backup = UmlChroot(cfg)
    backup.set_targetimage(basefile)
    backup.options["backup_target"] = machine
    backup.options["paella_action"] = "backup"
    backup.run_uml()
Пример #12
0
 def backup_machine(self, basefile=None):
     self._check_current()
     machine = self.current
     cfg = self._make_config(machine)
     chroot = UmlChroot(cfg)
     if basefile is None:
         basefile = self._get_basefile(cfg, machine)
     chroot.set_targetimage(basefile)
     chroot.options["backup_target"] = machine
     chroot.options["paella_action"] = "backup"
     chroot.run_uml()
Пример #13
0
 def setup_target(self, **kwargs):
     UmlChroot.setup_target(self, **kwargs)
Пример #14
0
 def __init__(self, conn=None, cfg=None):
     self.conn = conn
     UmlChroot.__init__(self, cfg=cfg)
     self.options['paella_action'] = 'install'
     paellarc_files = [self.cfg['paellarc']]
     self.paellarc = PaellaConfig(files=paellarc_files)
Пример #15
0
 def setup_target(self, **kwargs):
     UmlChroot.setup_target(self, **kwargs)
Пример #16
0
 def __init__(self, conn=None, cfg=None):
     self.conn = conn
     UmlChroot.__init__(self, cfg=cfg)
     self.options['paella_action'] = 'install'
     paellarc_files = [self.cfg['paellarc']]
     self.paellarc = PaellaConfig(files=paellarc_files)