Better HN
topnewbestaskshowjobs
Log inSign up

staff3203

20 karma · joined Nov 5, 2024 (2y ago) · 4 submissions

Submissions

comment 1y ago · link · parent

What to do for a single root fs spanned over 2 encrypted partitions on 2 separate disks?

comment 1y ago · link · parent

On my system, I used `tpm2-measure-pcr=yes` in `/etc/crypttab.initramfs`, then used `--tpm2-pcrs=0+2+7+15:sha256=0000000000000000000000000000000000000000000000000000000000000000` with `systemd-cryptenroll`.

As soon as a volume is decrypted, initrd will write `volume-key` to PCR 15, so any further executables can no longer access the data stored in the TPM.