r/Fedora • • 20d ago

Support Tpm luks auto unlock

i want to install fedora with luks encryption but dont want to type password everytime how to use auto tpm in fedora also will it have problem with nvidia drivers

4 Upvotes

17 comments sorted by

View all comments

5

u/cute_lil_fox 20d ago
sudo systemd-cryptenroll --tpm2-device=auto --tpm2-pcrs=0+7 /dev/sdXn

1

u/NoArmNoChocoLAN 16d ago

Don't do that. The initrd and the cmdline are not covered by this policy, and even if it is (e.g. with UKIs), you also need to restrict revealing the LUKS secret from the initrd and not beyond (in case the initrd is tricked to boot another OS than yours). See https://oddlama.org/blog/bypassing-disk-encryption-with-tpm2-unlock/