Skip to content

Commit

Permalink
Fixed cleanup in container based migration
Browse files Browse the repository at this point in the history
prior deletion of the container storage it needs to
be released from any mount process that could hold a
busy state on it
  • Loading branch information
schaefi committed Nov 8, 2024
1 parent dcbaf75 commit 9df5dc9
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion tools/migrate
Original file line number Diff line number Diff line change
Expand Up @@ -86,7 +86,9 @@ migrate() {

cleanup() {
# reset container storage
sudo rm -rf /var/lib/containers/storage/
sudo umount --lazy /var/lib/containers/storage/overlay
sudo umount --lazy /var/lib/containers/storage/overlay-containers/*/*/shm
sudo rm -rf /var/lib/containers/storage
}

# Read Arguments
Expand Down

0 comments on commit 9df5dc9

Please sign in to comment.