fido2luks: 0.2.3 -> 0.2.15

Also remove interactive flag from initrd, because of broken io.
This commit is contained in:
Anton Plotnikov 2020-10-13 12:01:23 +03:00
parent 33b7529b01
commit 1321ae850c
No known key found for this signature in database
GPG Key ID: 815608AC4C234750
2 changed files with 11 additions and 5 deletions

View File

@ -404,7 +404,7 @@ let
echo "Please move your mouse to create needed randomness."
''}
echo "Waiting for your FIDO2 device..."
fido2luks -i open ${device} ${name} ${fido2.credential} --await-dev ${toString fido2.gracePeriod} --salt string:$passphrase
fido2luks open ${device} ${name} ${fido2.credential} --await-dev ${toString fido2.gracePeriod} --salt string:$passphrase
if [ $? -ne 0 ]; then
echo "No FIDO2 key found, falling back to normal open procedure"
open_normally

View File

@ -3,23 +3,29 @@
, fetchFromGitHub
, cryptsetup
, pkg-config
, clang
, llvmPackages
}:
rustPlatform.buildRustPackage rec {
pname = "fido2luks";
version = "0.2.3";
version = "0.2.15";
src = fetchFromGitHub {
owner = "shimunn";
repo = pname;
rev = version;
sha256 = "0340xp7q6f0clb7wmqpgllllwsixmsy37k1f5kj3hwvb730rz93x";
sha256 = "1v5gxcz4zbc673i5kbsnjq8bikf7jdbn3wjfz1wppjrgwnkgvsh9";
};
buildInputs = [ cryptsetup ];
nativeBuildInputs = [ pkg-config ];
nativeBuildInputs = [ pkg-config clang ];
cargoSha256 = "0rp4f6xnwmvf3pv6h0qwsg01jrndf77yn67675ac39kxzmrzfy2f";
configurePhase = ''
export LIBCLANG_PATH="${llvmPackages.libclang}/lib"
'';
cargoSha256 = "19drjql13z8bw257z10kjppxm25jlfgrpc9g1jf68ka5j2b3nx7k";
meta = with stdenv.lib; {
description = "Decrypt your LUKS partition using a FIDO2 compatible authenticator";