Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 663918 - sys-fs/cryptsetup-2.0.4-r1 askes for password for veracrypt volumes even when key file is specified
Summary: sys-fs/cryptsetup-2.0.4-r1 askes for password for veracrypt volumes even when...
Status: UNCONFIRMED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal normal (vote)
Assignee: Gentoo's Team for Core System packages
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2018-08-17 22:02 UTC by Egon Spengler
Modified: 2018-08-18 22:39 UTC (History)
1 user (show)

See Also:
Package list:
Runtime testing required: ---


Attachments

Note You need to log in before you can comment on or make changes to this bug.
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?