Exemplo n.º 1
0
 def __init__(self, name, phaseclass, path, config, opts):
     BaseLogger.__init__(self, "Plugins-%s" % name)
     self.log_error("SELF [%s]" % self)
     self.log_info("path [%s] config [%s] opts [%s]" % (path, config, opts))
     self.path = path
     self.config = config
     self.opts = opts
     self.phaseclass = phaseclass
     # Init all the phases
     self.plugins = {}
     for stage in xrange(0, self.phaseclass.TheEnd):
         self.plugins[stage] = {}
Exemplo n.º 2
0
    def __init__(self, opts):
        BaseLogger.__init__(self, "HandlePlugins")
        self.opts = opts
        # Create the directory where everything goes:
        self.tmpdir = tempfile.mkdtemp(prefix = "make_initramfs-")

        self.root_libs = []
        self.root_libs.append(os.path.join(self.opts.root_dir, "usr/lib"))
        self.root_libs.append(os.path.join(self.opts.root_dir, "lib"))

        # Read in all the plugins
        self.__phaseclass = MIPhases()
        self.__plugins = Plugins("HandlePlugins",
                                 self.__phaseclass, self.opts.plugins_dir,
                                 None, self.opts)
Exemplo n.º 3
0
 def __init__(self):
     BaseLogger.__init__(self, "FileSystemUtils")
Exemplo n.º 4
0
 def __init__(self, opts):
     BaseLogger.__init__(self, "Generic-Create")
     self.opts = opts
Exemplo n.º 5
0
 def __init__(self, opts):
     BaseLogger.__init__(self, "Copy")
     self.opts = opts
Exemplo n.º 6
0
 def __init__(self, config, opts):
     BaseLogger.__init__(self, "Generic")
     self.config = config
     self.opts = opts
     self.__root_dir = opts.root_dir