Skip to content

Commit

Permalink
Followup fix for the cleanup method
Browse files Browse the repository at this point in the history
Do not treat the lazy umount as an error condition and
continue the cleanup of data. If a busy state cannot
be resolved it will fail at a later stage which is fine.
  • Loading branch information
schaefi committed Nov 20, 2024
1 parent 8725fb9 commit 0e642e1
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions tools/migrate
Original file line number Diff line number Diff line change
Expand Up @@ -86,8 +86,8 @@ migrate() {

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

Expand Down

0 comments on commit 0e642e1

Please sign in to comment.