예제 #1
0
파일: bootstrap.py 프로젝트: lbt/mic
 def cleanup(self, name):
     self.rootdir = name
     try:
         chroot.cleanup_mounts(self.rootdir)
         shutil.rmtree(self.rootdir, ignore_errors=True)
     except:
         raise errors.BootstrapError("Bootstrap: %s clean up fail " % self.rootdir)
예제 #2
0
 def cleanup(self, name):
     self.rootdir = name
     try:
         chroot.cleanup_mounts(self.rootdir)
         shutil.rmtree(self.rootdir, ignore_errors=True)
     except:
         raise errors.BootstrapError("Bootstrap: %s clean up fail " %
                                     self.rootdir)
예제 #3
0
 def cleanup(self):
     try:
         # clean mounts
         cleanup_mounts(self.rootdir)
         # remove rootdir
         shutil.rmtree(self.rootdir, ignore_errors=True)
     except:
         pass
 def cleanup(self):
     try:
         # clean mounts
         cleanup_mounts(self.rootdir)
         # remove rootdir
         shutil.rmtree(self.rootdir, ignore_errors=True)
     except:
         pass