mirror of
https://github.com/kata-containers/kata-containers.git
synced 2025-07-18 17:33:02 +00:00
Merge pull request #5976 from yaoyinnan/5825/fix/cleanup-hypervisor
runtime-rs: cleanup the run dir of hypervisor when shut down
This commit is contained in:
commit
a40fca1f57
@ -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;
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user