From 0e642e19b6f3106848852b005797a550ae95fe42 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Marcus=20Sch=C3=A4fer?= Date: Wed, 20 Nov 2024 22:37:05 +0100 Subject: [PATCH] Followup fix for the cleanup method 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. --- tools/migrate | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/tools/migrate b/tools/migrate index 1eb6ea4..e3694cf 100755 --- a/tools/migrate +++ b/tools/migrate @@ -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 }