mirror of
https://github.com/kata-containers/kata-containers.git
synced 2025-04-30 20:54:26 +00:00
kata-deploy: Don't try to remove /opt/kata
The directory is a host path mount and cannot be removed from within the container. What we actually want to remove is whatever is inside that directory. This may raise errors like: ``` rm: cannot remove '/opt/kata/': Device or resource busy ``` Fixes: #7746 Signed-off-by: Fabiano Fidêncio <fabiano.fidencio@intel.com>
This commit is contained in:
parent
71c90b994a
commit
d8f3ce6497
@ -357,7 +357,7 @@ function configure_containerd() {
|
|||||||
|
|
||||||
function remove_artifacts() {
|
function remove_artifacts() {
|
||||||
echo "deleting kata artifacts"
|
echo "deleting kata artifacts"
|
||||||
rm -rf /opt/kata/
|
rm -rf /opt/kata/*
|
||||||
}
|
}
|
||||||
|
|
||||||
function cleanup_cri_runtime() {
|
function cleanup_cri_runtime() {
|
||||||
|
Loading…
Reference in New Issue
Block a user