luks2: Opening a device formatted with --integrity none fails
I discovered that when a LUKS2 device is formatted with --integrity none
(as opposed to omitting the flag altogether), it is not possible to open it, getting this error:
device-mapper: table: 253:0: crypt: Invalid integrity arguments
device-mapper: reload ioctl on failed: Invalid argument
device-mapper: remove ioctl on failed: No such device or address
I would expect that the behavior would be the same for --integrity none
as for not specifying integrity at all.
Minimal set of commands to reproduce:
cryptsetup luksFormat -q -d <(echo -n password) --type luks2 --integrity none <device>
cryptsetup luksOpen -q -d <(echo -n password) <device> <name>
EDIT: Fixed the reproducing commands
Edited by username-removed-653601