I have a veracrypt partition that is used by windows. It's not the system drive for windows C: but a data drive. It has no password only a key file. I can mount this from the command line from windows without a password. On linux, I get asked for a password ie: cryptsetup --verbose --key-file=./key --type tcrypt --veracrypt --veracrypt-pim=0 --allow-discards open /dev/sda3 vera ; cryptsetup close /dev/mapper/vera Enter passphrase for /dev/sda3: Command successful. To work around this in systemd unit I do: sh -c 'echo | cryptsetup --verbose --key-file=./key --type tcrypt --veracrypt --veracrypt-pim=0 --allow-discards open /dev/sda3 vera '; cryptsetup close /dev/mapper/vera Command successful. Is this the correct behaviour?