get plymouth to display a message
Some checks failed
continuous-integration/drone/push Build is failing

This commit is contained in:
shimun 2020-08-11 22:38:58 +02:00
parent 4136b1bfad
commit 0f6d79a7e4
Signed by: shimun
GPG Key ID: E81D8382DC2F971B
2 changed files with 4 additions and 2 deletions

View File

@ -1,6 +1,6 @@
[package]
name = "fido2luks"
version = "0.2.9"
version = "0.2.10"
authors = ["shimunn <shimun@shimun.net>"]
edition = "2018"

View File

@ -3,7 +3,9 @@ set -a
. /etc/fido2luks.conf
if [ -z "$FIDO2LUKS_PASSWORD_HELPER" ]; then
export FIDO2LUKS_PASSWORD_HELPER="plymouth ask-for-password --promt 'FIDO2 password salt for $CRYPTTAB_NAME'"
MSG="FIDO2 password salt for $CRYPTTAB_NAME"
export FIDO2LUKS_PASSWORD_HELPER="plymouth ask-for-password --promt '$MSG'"
plymouth message --text "$MSG"
fi
fido2luks print-secret --bin