A related question would be: luksOpen doesn't decrypt with keyfile unless --key-file argument is provided
On Ubuntu bionic with
cryptsetup 2.0.2 however, I do encounter the following problem:
when opening a luks encrypted device by using a password contained in a file it works well on the direct call:
cat mypass.txt | sudo cryptsetup open --type luks /dev/sda1 enc-store
trying to use the documented
--key-file=- argument, which should result in the same behavior
cat mypass.txt | sudo cryptsetup open --type luks --key-file=- /dev/sda1 enc-store
just producing the delayed message
No key available with this passphrase.
this is especially a problem, when trying to use the script
cryptdisks_start enc-store, which relies on the
--key-file=- option, which produces the above message thrice
which makes life a tad less enjoyable.
am I missing something here?