mirror of
https://github.com/kata-containers/kata-containers.git
synced 2025-08-13 21:56:32 +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>
(cherry picked from commit d8f3ce6497
)
This commit is contained in:
parent
e99a13d26c
commit
5b9a69433d
@ -342,7 +342,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