mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-10-31 22:51:22 +00:00
nixos/luksroot: allow discards with fido2luks
This commit is contained in:
parent
7aad0871d5
commit
da26caad10
@ -433,7 +433,7 @@ let
|
|||||||
echo "Please move your mouse to create needed randomness."
|
echo "Please move your mouse to create needed randomness."
|
||||||
''}
|
''}
|
||||||
echo "Waiting for your FIDO2 device..."
|
echo "Waiting for your FIDO2 device..."
|
||||||
fido2luks open ${dev.device} ${dev.name} ${dev.fido2.credential} --await-dev ${toString dev.fido2.gracePeriod} --salt string:$passphrase
|
fido2luks open${optionalString dev.allowDiscards " --allow-discards"} ${dev.device} ${dev.name} ${dev.fido2.credential} --await-dev ${toString dev.fido2.gracePeriod} --salt string:$passphrase
|
||||||
if [ $? -ne 0 ]; then
|
if [ $? -ne 0 ]; then
|
||||||
echo "No FIDO2 key found, falling back to normal open procedure"
|
echo "No FIDO2 key found, falling back to normal open procedure"
|
||||||
open_normally
|
open_normally
|
||||||
|
Loading…
Reference in New Issue
Block a user