For headless systems, add boot entropy

Overview

As mentioned in Raspberry Pi - Alpine Linux under ‘Troubleshooting: Long boot time when running headless’, some systems might take an excessively long time to boot when no peripherals are attached (not only with the Pi series). In those cases it may be useful to add the HAVEGED package to speed up the gathering of entropy. (REVIEW: Is this still needed with 5.xx kernels?)

Install haveged

apk add haveged

Enable haveged on system startup

rc-update add haveged default

We don’t enable during the ‘boot’ stage because it would have no effect for our hybrid install, data installs, or diskless installs.

Don’t forgot to commit your changes

Otherwise they will be lost on reboot.

lbu commit