Container: delete overlay tempdir upon cleanup
This commit is contained in:
parent
ceee1908a4
commit
4e39260232
1 changed files with 4 additions and 0 deletions
|
@ -210,6 +210,10 @@ class Container(util.LibvirtObject):
|
||||||
raise exn
|
raise exn
|
||||||
# Else, the machine was already stopped: everything is fine
|
# Else, the machine was already stopped: everything is fine
|
||||||
self.lxc_container = None
|
self.lxc_container = None
|
||||||
|
if self.overlay_root:
|
||||||
|
self.overlay_root.cleanup_mount()
|
||||||
|
self.overlay_root.overlay_temp_dir.cleanup()
|
||||||
|
self.overlay_root = None
|
||||||
|
|
||||||
def __enter__(self):
|
def __enter__(self):
|
||||||
self.create()
|
self.create()
|
||||||
|
|
Loading…
Reference in a new issue