# Clear superblocks to make the MD device will not be restarted even if the VM is restarted.
# This is a workaround for issue #38240.
- mdadm -v --zero-superblock --force "${devices[@]}"
+ udevadm settle --timeout=30
+ # shellcheck disable=SC2046
+ mdadm -v --zero-superblock --force $(readlink -f "${devices[@]}")
udevadm settle --timeout=30
# Check if all expected symlinks were removed after the cleanup
# Clear superblocks to make the MD device will not be restarted even if the VM is restarted.
# This is a workaround for issue #38240.
- mdadm -v --zero-superblock --force "${devices[@]}"
+ udevadm settle --timeout=30
+ # shellcheck disable=SC2046
+ mdadm -v --zero-superblock --force $(readlink -f "${devices[@]}")
udevadm settle --timeout=30
# Check if all expected symlinks were removed after the cleanup