Browse Source

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
Antonio Alvarez Feijoo 3 years ago committed by Jóhann B. Guðmundsson
parent
commit
d5fd030cc2
  1. 3
      modules.d/90crypt/module-setup.sh

3
modules.d/90crypt/module-setup.sh

@ -24,6 +24,9 @@ depends() { @@ -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…
Cancel
Save