master - tests: add settle wait before issue remove
Gitweb: https://sourceware.org/git/?p=lvm2.git;a=commitdiff;h=1e553159d5147c601ae4b524198461309016b496 Commit: 1e553159d5147c601ae4b524198461309016b496 Parent: d3903d94e910b7ca673ef090c6fe9f79b04b7dd5 Author: Zdenek Kabelac <[email protected]> AuthorDate: Thu Jul 4 16:58:27 2019 +0200 Committer: Zdenek Kabelac <[email protected]> CommitterDate: Fri Aug 9 12:57:21 2019 +0200
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 at -tcrypt2 is busy.
Try to use udevadm settle.
--- test/shell/fsadm-crypt.sh | 1 + 1 files changed, 1 insertions(+), 0 deletions(-)
test/shell/fsadm-crypt.sh +1 -0
@@ -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"