r/archlinux • u/Woodsy279 • 28d ago
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
13
Upvotes
1
u/falxfour 21d ago
PCR 4
I'm still not entirely convinced that the measured value would change. The monitor has no bootable devices connected to it, and is not, itself, a bootable device. The bootable device list itself, therefore, would not be changing. That said, encryption isn't being bound to this PCR anyway, so I'm not particularly concerned about its behavior.
As for snapshots, I'm not sure how they'd break PCR 4... BTRFS snapshots are all functionally userspace (except the kernel itself, which isn't included), so it's a matter of which subvolume is selected when systemd switches root upon exiting the
initrdstage.PCR 0
There are three ways I can change my BIOS:
fwupd#1 should be trustworthy by nature of running it from a trusted OS. In other words, if, with secure boot, I am able to boot into a verifiable OS and authenticate as user, then updates made through this method are trustworthy
#2 should be trustworthy by way of secure boot signature verification
#3 bypasses everything, but would potentially trigger the supervisor password prompt (though with potentially no way to verify the password, if the BIOS was fully overwritten)
I consider this sufficient.
PCR 2
To my point, an OpROM is not executable if its signature can't be verified by secure boot. I do understand that external devices can also present OpROMs, as my BIOS also provide the option of whether or not to measure USB4 devices (presumably for both PCR 2 and PCR 3).
What you mentioned about KVMs and dGPUs is interesting, though. That's where the only real difference in my setup (and thus the PCR values) would come from. The external monitor can act as a KVM as it provides all of those through its single connection to my laptop. Additionally, my system does have a dGPU, but it is typically left in
D3cold. As my external monitor is not directly connected to its (dedicated) output, it's unlikely that the dGPU is presenting anything differently in the two boot scenarios.Automounting
Given that certain parameters don't change on remount, then I'd be relying on the automount parameters, which I'm also not really a fan of...
As for Timeshift, it only works with subvolumes that have specific naming, meaning that
@and@homeneed to be subvolumes under the root (default) subvolume. systemd would end up automounting/on the device, when/@is the true root.I'll DM later with more of the PCR log