示例#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