Ejemplo n.º 1
0
 def runthread(self):
     logger.logI(self.tn, logger.I, _("Copying files to the temporary filesystem"))
     excludes = configutils.parseMultipleValues(configutils.getValue(configs[configutils.excludes]))
     varexcludes = excludes
     # Exclude all log files (*.log *.log.*), PID files (to show that no daemons are running),
     # backup and old files (for obvious reasons), and any .deb files that a person might have downloaded
     varexcludes.extend(["*.log", "*.log.*", "*.pid", "*/pid", "*.bak", "*.[0-9].gz", "*.deb"])
     fsutil.fscopy("/etc", tmpsys + "etc", excludes, self.tn)
     fsutil.fscopy("/var", tmpsys + "var", varexcludes, self.tn)
Ejemplo n.º 2
0
 def runthread(self):
     logger.logI(self.tn, logger.I,
                 _("Copying files to the temporary filesystem"))
     excludes = configutils.parseMultipleValues(
         configutils.getValue(configs[configutils.excludes]))
     varexcludes = excludes
     # Exclude all log files (*.log *.log.*), PID files (to show that no daemons are running),
     # backup and old files (for obvious reasons), and any .deb files that a person might have downloaded
     varexcludes.extend([
         "*.log", "*.log.*", "*.pid", "*/pid", "*.bak", "*.[0-9].gz",
         "*.deb"
     ])
     fsutil.fscopy("/etc", tmpsys + "etc", excludes, self.tn)
     fsutil.fscopy("/var", tmpsys + "var", varexcludes, self.tn)
Ejemplo n.º 3
0
 def run(self):
     logger.logI(self.tn, _("Copying files to the temporary filesystem"))
     excludes = configutils.getValue(configs[configutils.excludes])
     fsutil.fscopy("etc", tmpsys + "etc", excludes, self.tn)
     fsutil.fscopy("var", tmpsys + "var", excludes, self.tn)