I'm using luks2, and when running zkey cryptsetup -r it asks the passphrase three time (twice by cryptsetup, and once by zkey-cryptsetup).
Normally, when using cryptsetup one can specify a keyfile with a passphrase as the second options, or as a keyarg option --key-file
It would be nice if one could pass --key-file /run/path/to/passphrase-file to zkey cryptsetup command which would then in turn pass that to cryptsetup and zkey-cryptsetup commands.
But also zkey-cryptsetup needs to grow the --key-file option.
BTW this is not about master keyfile option....
This is needed for automation / UI driven zkey setup.
BTW: zkey-cryptsetup already has a --key-file option (together with --keyfile-offset and --keyfile-size) that behaves just like the equivalent options of cryptsetup.
I'm using luks2, and when running
zkey cryptsetup -r
it asks the passphrase three time (twice by cryptsetup, and once by zkey-cryptsetup).Normally, when using cryptsetup one can specify a keyfile with a passphrase as the second options, or as a keyarg option
--key-file
It would be nice if one could pass
--key-file /run/path/to/passphrase-file
tozkey cryptsetup
command which would then in turn pass that tocryptsetup
andzkey-cryptsetup
commands.But also zkey-cryptsetup needs to grow the
--key-file
option.BTW this is not about master keyfile option....
This is needed for automation / UI driven zkey setup.