Unexpected wipe and return code on luksFormat action with wrong parameters
[root@frawhide]# echo "aaa" | cryptsetup luksFormat --pbkdf-force-iterations 1 --integrity hmac-sha256 /dev/sdx Wiping device to initialize integrity checksum. You can interrupt this by pressing CTRL+c (rest of not wiped device will contain invalid checksum). Finished, time 00:00.009, 7 MiB written, speed 708,2 MiB/s [root@frawhide]# echo $? 0
Reproduced on 2.0.0-rc0. Cryptsetup doesn't fail luksFormat action with integrity profile requested after accidentally started with implicit luks1 type.
Edited by Ondrej Kozina