Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!

Bug 663918

Summary: sys-fs/cryptsetup-2.0.4-r1 askes for password for veracrypt volumes even when key file is specified
Product: Gentoo Linux Reporter: Egon Spengler <ebd5k9+sj6nlfe8tytw>
Component: Current packagesAssignee: Gentoo's Team for Core System packages <base-system>
Status: UNCONFIRMED ---    
Severity: normal CC: jstein
Priority: Normal    
Version: unspecified   
Hardware: All   
OS: Linux   
Whiteboard:
Package list:
Runtime testing required: ---

Description Egon Spengler 2018-08-17 22:02:21 UTC
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?