A start job is runnning for /dev/tpmr0

Hello,

My problem is that everytime i boot up, i get following message

[  OK  ] Finished Apply Kernel Variables.
[  OK  ] Finished Firewall.
[**    ] A start job is running for /dev/tpmrm0 (13s / 1min 30s)

I do not use tpm.

[Interrupting systemd services] here it was Suggested, that one could set the TimeoutStartSec to something shorter.But how would i do that for /dev/tpmrm0?

[[SOLVED] Boot process slowdown because of /dev/tpmrm0 start job. / Newbie Corner / Arch Linux Forums] Archusers said one should systemctl mask either tmp2.target. or dev-tpmrm0.device. This is not possible via imperative commands on NixOS. How could i do this via the Config?

How Could I solve my problem of waiting 90s every boot?

systemd.tpm2.enable = false;
and additionally
boot.initrd.systemd.tpm2.enable = false; if the first one is not enough.

3 Likes

Adding these two lines in my configuration.nix file just prior to the closing “}” did not fix the issue. Should I have put them elsewhere?

Addendum
I found out an alternate method to address this issue. You need to go into your BIOS menus (typically under ‘Security’) and disable TPM. Might be a bit too scorched earth for some. However it is my understanding the NixOS is only performing this check becuase it sees TPM availability. Take that away and watch your boot times become lightening fast.

The accepted solution did not work for me, so had to disable TPM on the BIOS as well.