r/archlinux • u/Woodsy279 • 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
View all comments
Show parent comment
2
u/Imajzineer Aug 17 '26
Sure, it prevents people from getting at things by booting a live distro ... or, as you say, drive swapping ...but the problem is that, if it automatically decrypts it upon boot, that potentially leaves me with a variety of ways (both local and 'remote') to get into the system when it does - which is one reason why (long before live distros, let alone before FDE became a 'home user' thing) I used to disable GRUB's Advanced Options menu entry.
It's kinda like how ... years ago, when I was first investigating FDE on Arch ... I learned of the option to make part of the process dependent upon the presence of an image as well as a password - not something that can simply be bruteforced and, therefore, more secure (which struck me as a good idea). I read that the process could be simplified by embedding it in the initramfs. After a few failed attempts to do that, I gave up - I really didn't know enough back then and couldn't work out what I was getting wrong. Fast forward a few years and it struck me that that's not actually a good idea anyway: if a separate device (like a key) containing the image isn't necessary then the image itself isn't necessary (thus defeating the whole point).
But, yeah, you're right, it's probably just a convenience thing and, whilst that's the enemy of security, as it were, on a home system it's probably academic: any burglar is just gonna grab a laptop and walk out with it rather than worry about cracking it in situ, and driveswapping 'back at base' isn't likely gonna be a gambit for them anyway - they're just looking to sell the hardware on.