From 1e553159d5147c601ae4b524198461309016b496 Mon Sep 17 00:00:00 2001 From: Zdenek Kabelac Date: Thu, 4 Jul 2019 16:58:27 +0200 Subject: [PATCH] tests: add settle wait before issue remove Some older BB with older cryptsetup tool do not 'retry' on remove and when remove is issued right after 'fsck' - it might be rejected with: Device @PREFIX@-tcrypt2 is busy. Try to use udevadm settle. --- test/shell/fsadm-crypt.sh | 1 + 1 file changed, 1 insertion(+) diff --git a/test/shell/fsadm-crypt.sh b/test/shell/fsadm-crypt.sh index 9377e8942..4b8fc4e2d 100644 --- a/test/shell/fsadm-crypt.sh +++ b/test/shell/fsadm-crypt.sh @@ -83,6 +83,7 @@ export LVM_BINARY test ! -d "$mount_dir" && mkdir "$mount_dir" crypt_close() { + aux udev_wait cryptsetup remove "$1" if [ "$?" -eq 0 -a -n "$DROP_SYMLINK" ]; then rm -f "$DM_DEV_DIR/mapper/$1" -- 2.43.5