Molecule:
- when executing a script inside a chroot, remember to remove it once done git-svn-id: http://svn.sabayonlinux.org/projects/molecule/trunk@3134 cd1c1023-2f26-0410-ae45-c471fc1f0318
This commit is contained in:
@@ -209,6 +209,11 @@ class ChrootHandler(GenericHandlerInterface):
|
||||
if not dest_exec.startswith("/"):
|
||||
dest_exec = "/%s" % (dest_exec,)
|
||||
rc = molecule.utils.exec_chroot_cmd([dest_exec], self.dest_dir, self.metadata.get('prechroot',[]))
|
||||
try:
|
||||
shutil.rmtree(tmp_dir,True)
|
||||
os.rmdir(tmp_dir)
|
||||
except OSError:
|
||||
pass
|
||||
if rc != 0:
|
||||
self.Output.updateProgress("[%s|%s] %s: %s" % (
|
||||
blue("ChrootHandler"),darkred(self.spec_name),
|
||||
|
||||
Reference in New Issue
Block a user