From 0edf1696dc1011edb96bf1f31afc4684e65671dd Mon Sep 17 00:00:00 2001 From: Manuel Thalmann Date: Sun, 9 Jul 2023 12:43:30 +0200 Subject: [PATCH] Force unmounting --- deploy.sh | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/deploy.sh b/deploy.sh index ba98d09..ed161ea 100755 --- a/deploy.sh +++ b/deploy.sh @@ -120,9 +120,9 @@ else sudo wimdelete --soft "$wimFile" 2; done; - sudo umount "$mountPath"; - sudo umount "$bootPath"; - sudo umount "$dataPath"; + sudo umount -f "$mountPath"; + sudo umount -f "$bootPath"; + sudo umount -f "$dataPath"; sudo rm -rf "$mountPath" "$bootPath" "$dataPath"; fi;