Skip to content

Commit

Permalink
kata-deploy: Don't try to remove /opt/kata
Browse files Browse the repository at this point in the history
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: kata-containers#7746

Signed-off-by: Fabiano Fidêncio <[email protected]>
  • Loading branch information
fidencio committed Aug 24, 2023
1 parent 71c90b9 commit d8f3ce6
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion tools/packaging/kata-deploy/scripts/kata-deploy.sh
Original file line number Diff line number Diff line change
Expand Up @@ -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() {
Expand Down

0 comments on commit d8f3ce6

Please sign in to comment.