Remote disk unlocking: Difference between revisions
imported>0x4A6F No edit summary |
imported>0x4A6F No edit summary |
||
Line 102: | Line 102: | ||
'';</pre> | '';</pre> | ||
That was it. Tor should be running during your boot process. | That was it. Tor should be running during your boot process. | ||
=== Setup haveged === | |||
If your system doesn't gather enough entropy the startup time of tor is rather long (2:42 vs 0:06 on a RPi 4b). Counter it by starting <code>haveged</code>. | |||
Append in your <code>boot.initrd.extraUtilsCommands</code>. | |||
<pre> | |||
copy_bin_and_libs ${pkgs.haveged}/bin/haveged | |||
</pre> | |||
Then use this snippet before <code>echo "tor: starting tor"</code> in your <code>boot.initrd.network.postCommands</code>. | |||
<pre> | |||
echo "haveged: starting haveged" | |||
haveged -F & | |||
</pre> | |||
=== Setup ntpdate === | === Setup ntpdate === |