-
Notifications
You must be signed in to change notification settings - Fork 46
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
TPM unlocking fails: stat /dev/tpmrm0: no such file or directory #116
Comments
Yes indeed it is a race condition between discovering required devices and processing LUKS partition. The LUKS partition is handled so fast that it happens before TPM driver initializes devices. It belongs to the same bucket of problems as with other hardware dependencies:
I want to look at these issues before 0.8 release. |
I was also having this issue on my laptop, so I made a pull request |
@Axelen123 thank you very much for the fix. The code looks good. I ran integration tests for an hour and I do not see any errors with it. The PR is merged to FYI Here is a related ticket that aims to create an event synchronization mechanism that would handle hardware event like TPM chip is available, Network is available, Yubikey is inserted, ... #100 |
The fix has been merged to |
I have used
systemd-cryptenroll
to add a TPM2 key. When I try to boot an image generated usingbooster
(no arguments, empty/etc/booster.yaml
), I get a password prompt instead of automatic TPM unlocking, and withbooster.log=debug
I seein the logs. It seems that the device node
/dev/tpmrm0
is being created too late, after booster already tried to open it.If I set
booster.log=debug,console
, the TPM unlock is successful. I'm guessing that all the text being printed slows things down so that things happen in the correct order, because in the logs I see thattpmrm0
is being created before the disk is unlocked.This is happening with both
booster-git
and0.7
.The text was updated successfully, but these errors were encountered: