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
Beispiel #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
Beispiel #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'
 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'
Beispiel #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()
Beispiel #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()
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()
Beispiel #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()
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()
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()
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()
 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()
Beispiel #13
0
 def setup_target(self, **kwargs):
     UmlChroot.setup_target(self, **kwargs)
Beispiel #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)
 def setup_target(self, **kwargs):
     UmlChroot.setup_target(self, **kwargs)
 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)