shimun 39b90d27b7
Some checks failed
continuous-integration/drone/push Build is passing
continuous-integration/drone/pr Build is failing
update keyscript
2020-10-27 15:54:18 +01:00

11 lines
325 B
Bash
Executable File

#!/bin/sh
set -a
. /etc/fido2luks.conf
if [ -z "$FIDO2LUKS_PASSWORD_HELPER" ]; then
MSG="FIDO2 password salt for $CRYPTTAB_NAME"
export FIDO2LUKS_PASSWORD_HELPER="plymouth ask-for-password --prompt '$MSG'"
fi
fido2luks print-secret --bin "$CRYPTTAB_SOURCE" $([ "$FIDO2LUKS_USE_TOKEN" -eq 0 ] && printf "--disable-token")