mirror of
https://github.com/kata-containers/kata-containers.git
synced 2025-09-04 10:24:37 +00:00
runtime-rs: cleanup the run dir of hypervisor when shut down
Cleanup the run dir of hypervisor when shut down. Fixes: #5825 Signed-off-by: yaoyinnan <yaoyinnan@foxmail.com>
This commit is contained in:
@@ -248,6 +248,12 @@ impl Sandbox for VirtSandbox {
|
|||||||
.await
|
.await
|
||||||
.context("delete cgroups")?;
|
.context("delete cgroups")?;
|
||||||
|
|
||||||
|
info!(sl!(), "delete hypervisor");
|
||||||
|
self.hypervisor
|
||||||
|
.cleanup()
|
||||||
|
.await
|
||||||
|
.context("delete hypervisor")?;
|
||||||
|
|
||||||
info!(sl!(), "stop monitor");
|
info!(sl!(), "stop monitor");
|
||||||
self.monitor.stop().await;
|
self.monitor.stop().await;
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user