This commit is contained in:
parent
03cc5c70fd
commit
a17713692a
@ -7,7 +7,8 @@ fido2_decrypt() {
|
|||||||
local keypath="$2"
|
local keypath="$2"
|
||||||
#Unused local keydev=$3
|
#Unused local keydev=$3
|
||||||
#Unused local device=$4
|
#Unused local device=$4
|
||||||
export FIDO2LUKS_CREDENTIAL_ID="${keypath%.*}"
|
. /etc/$keypath
|
||||||
|
export FIDO2LUKS_CREDENTIAL_ID="${CREDENTIAL_ID:-$FIDO2LUKS_CREDENTIAL_ID}"
|
||||||
export FIDO2LUKS_SALT="$(getargs rd.fido2luks.salt)"
|
export FIDO2LUKS_SALT="$(getargs rd.fido2luks.salt)"
|
||||||
export FIDO2LUKS_PASSWORD_HELPER="/usr/bin/systemd-ask-password 'Disk 2fa password'"
|
export FIDO2LUKS_PASSWORD_HELPER="/usr/bin/systemd-ask-password 'Disk 2fa password'"
|
||||||
if [ -z "$FIDO2LUKS_SALT" ]; then
|
if [ -z "$FIDO2LUKS_SALT" ]; then
|
||||||
|
@ -7,14 +7,11 @@ check() {
|
|||||||
}
|
}
|
||||||
|
|
||||||
depends() {
|
depends() {
|
||||||
echo rootfs-block
|
echo crypt
|
||||||
return 0
|
|
||||||
}
|
}
|
||||||
|
|
||||||
install() {
|
install() {
|
||||||
|
|
||||||
patch
|
|
||||||
|
|
||||||
#inst_hook pre-trigger 91 "$moddir/ykluks.sh"
|
#inst_hook pre-trigger 91 "$moddir/ykluks.sh"
|
||||||
#inst_hook initqueue 01 "$moddir/fido2luks.sh"
|
#inst_hook initqueue 01 "$moddir/fido2luks.sh"
|
||||||
#inst_hook pre-mount 1 "$moddir/fix_crypttab.sh"
|
#inst_hook pre-mount 1 "$moddir/fix_crypttab.sh"
|
||||||
|
Loading…
x
Reference in New Issue
Block a user