Reproducer without udisks2:
sudo modprobe scsi_debug echo foo | sudo cryptsetup luksFormat /dev/sdb echo foo | sudo cryptsetup luksOpen /dev/sdb l
Reproducer without udisks2:
sudo modprobe scsi_debug
echo foo | sudo cryptsetup luksFormat /dev/sdb
echo foo | sudo cryptsetup luksOpen /dev/sdb l