Intermittent problem accessing TPM during 22.04 boot
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
systemd (Ubuntu) |
New
|
Undecided
|
Unassigned |
Bug Description
I am using 22.04 and am hitting a bug accessing the TPM during start-up to decrypt a LUKS encrypted drive (data drive, not system drive).
With a Virtualbox 22.04 VM, the problem only happens with the HWE kernel and occurs 8 out of 10 times. 2 out of 10 times the system boots correctly. When using the non HWE kernel it works 10 out of 10 times.
With a physical server, Supermicro X10, the problem does not occur at all.
My LUKS volume is named drive1. From journalctl -u <email address hidden>
Oct 10 07:42:08 tpm2-test systemd-
The problem is discussed here - https:/
I'll not go into too much detail as this problem is already resolved in newer versions of systemd. The fix for this problem was merged into Ubuntu's systemd 252.3-1.
https:/
Can this fix be made available to 22.04 - systemd 249.11?
I encountered the same issue recently and attempted to build systemd from source and patch the retry behavior from #24906, but I failed to make it work. Instead, I modified systemd- cryptsetup- generator to include retry behavior into the generated unit files for the encrypted volumes, which has worked for me. I've written up the details here: /gist.github. com/bnabholz/ 86e4a6a8a8af9b6 6fff121e8a7a053 fe
https:/
It is a little hacky but works for me, until I can upgrade to 24.04 which will have a systemd that contains the proper fix.