Skip to content

Fix the missing HW_RANDOM_TPM regression (Closes: #1041007)

Vincent Blut requested to merge vblut/linux:hw_random-as-built-in into sid

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, the TCG_TPM and HW_RANDOM config symbols are required but there is a subtlety in the way they have to be built. If TCG_TPM is built-in then HW_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).

Merge request reports

Loading