feat(crypt): check if fido2 module is needed in hostonly mode
In hostonly mode, include the fido2 module if any encrypted volumes are configured to be decrypted using a FIDO2 security token.master
parent
dc3b976f33
commit
d5fd030cc2
|
@ -24,6 +24,9 @@ depends() {
|
|||
if grep -q "tpm2-device=" "$dracutsysrootdir"/etc/crypttab; then
|
||||
deps+=" tpm2-tss"
|
||||
fi
|
||||
if grep -q -e "fido2-device=" -e "fido2-cid=" "$dracutsysrootdir"/etc/crypttab; then
|
||||
deps+=" fido2"
|
||||
fi
|
||||
fi
|
||||
echo "$deps"
|
||||
return 0
|
||||
|
|
Loading…
Reference in New Issue