Open komachi opened 3 years ago
I'm looking into systemd-cryptenroll, looks promising and makes everything much simpler (run one command and everything else should work out-of-box). Sadly this requires newer systemd that available only in experimental for now.
This also invoves migration from grub2 to systemd-boot, also systemd-cryptenroll provide a nice way to lock kernel cmdline when used with systemd-boot.
I was trying to solve the very same problem, some notes: https://github.com/savchenko/debian/wiki/tpm2-@-libvirt,-Clevis
P.S. You might want to check the https://github.com/savchenko/debian as well. Feel free to fork.