Fix the missing HW_RANDOM_TPM regression (Closes: #1041007)
Hi there,
Here is a draft to fix #1041007. As a reminder, this bug is due to an inadequate configuration. As stated in the bug report:
For
HW_RANDOM_TPM
to be enabled, theTCG_TPM
andHW_RANDOM
config symbols are required but there is a subtlety in the way they have to be built. IfTCG_TPM
is built-in thenHW_RANDOM
must not be loadable (built as a module).
You guessed it, our kernel config is at fault:
grep -E "TCG_TPM|HW_RANDOM=" /boot/config-6.4.0-3-amd64
CONFIG_HW_RANDOM=m
CONFIG_TCG_TPM=y
The proposed fix here is to switch HW_RANDOM
to built-in. This solution seems to have been adopted by most major distributions (e.g. Arch Linux, Fedora, Ubuntu).