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:
Fabiano Fidêncio 2023-08-24 13:57:36 +02:00
parent 71c90b994a
commit d8f3ce6497

View File

@ -357,7 +357,7 @@ function configure_containerd() {
function remove_artifacts() {
echo "deleting kata artifacts"
rm -rf /opt/kata/
rm -rf /opt/kata/*
}
function cleanup_cri_runtime() {