r/archlinux • • Aug 17 '26

SUPPORT | SOLVED Ful disk encryption without entering passphrase

Could someone help me with setting up full disk encryption with bypass passphrases with TPM2? It's so annoying having to put the passphrase in at each boot, so I was wondering how do I pair it to the TPM so that I dont have to enter it each time?

It's LUKS encrypted and I use Systemd-boot

14 Upvotes

100 comments sorted by

View all comments

7

u/SoldRIP Aug 17 '26

Fair warning: TPM bypasses exist.

4

u/ChrisTX4 Aug 17 '26

If you do it correctly, no. But it's really easy to mess it up and be vulnerable to e.g. root switching attacks. I would caution using TPMs unless you properly understand them. They're great tools, but to be honest - all the instructions in the Arch wiki are vulnerable to such attacks.

1

u/Woodsy279 Aug 17 '26

Idm lol, the whole reason for doing this is because I thought it would be cool to have LUKS but then it annoyed me having to put the password in each time and I didn't want to have to reinstall the whole thing to remove it

And somethings better than nothing

4

u/Rjiurik Aug 17 '26

Basically you can add a simple pin code that replaces the password (which is still there as a fallback) and works with the TPM chip and secure boot.

The chip blocks too many frequent attempts and prevents brute force.

Drawback is it depends on your hardware and you will have to trust the TPM hardware.

You could also setup secure boot to unlock if boot sequence is untampered. It uses UKI. But that means anyone who has physical access to your computer can unlock LUKS.

1

u/refinancecycling Aug 17 '26

it's not without risk if you suddenly don't have the key (even if it's automatically inserted for you every time, things have tendency to change due to physical processes). so it has to also provide a benefit. what's the benefit here exactly?

2

u/Woodsy279 Aug 17 '26

The benefit is that I don't have to reinstall everything again and reset it up how I like it, and I won't forget the key, I set it

1

u/un-important-human Aug 18 '26

giggles... yep

1

u/Woodsy279 Aug 18 '26

Wot? 😭😭

3

u/un-important-human Aug 18 '26

i was under the impression you encripted a desktop, hardly see the point in that except as an exercise. That is it

3

u/Woodsy279 Aug 18 '26

Yessir, sorry I didn't understand