Skip to content

Commit

Permalink
feat(crypt): check if fido2 module is needed in hostonly mode
Browse files Browse the repository at this point in the history
In hostonly mode, include the fido2 module if any encrypted volumes
are configured to be decrypted using a FIDO2 security token.
  • Loading branch information
aafeijoo-suse authored and johannbg committed Nov 24, 2021
1 parent dc3b976 commit d5fd030
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions modules.d/90crypt/module-setup.sh
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit d5fd030

Please sign in to comment.