mirror of
git://sourceware.org/git/lvm2.git
synced 2025-03-10 16:58:47 +03:00
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.
This commit is contained in:
parent
d3903d94e9
commit
1e553159d5
@ -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"
|
||||
|
Loading…
x
Reference in New Issue
Block a user