summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--cryptfs.bin.in2
1 files changed, 1 insertions, 1 deletions
diff --git a/cryptfs.bin.in b/cryptfs.bin.in
index cf4366f..3378588 100644
--- a/cryptfs.bin.in
+++ b/cryptfs.bin.in
@@ -286,7 +286,7 @@ do_crypt_open() {
do_integrity_close() {
if is_unlocked "$1"; then
- while ! integritysetup close "$1"; do
+ while ! integritysetup close "$1" && ! dmsetup remove "$1"; do
sleep 1
done
fi