]> git.ipfire.org Git - thirdparty/mkosi.git/commit
mkosi-initrd/vm: ensure TPM2 core modules are installed in the initrd
authorLuca Boccassi <luca.boccassi@gmail.com>
Mon, 28 Jul 2025 23:40:26 +0000 (00:40 +0100)
committerJörg Behrmann <behrmann@physik.fu-berlin.de>
Tue, 29 Jul 2025 07:51:11 +0000 (09:51 +0200)
commit07c24a7d42b20d4fde14e6b0bf4b1d77ac299d13
tree1ce3d9709d761f71c0df2a41833697db30129534
parentcb1a3c90490922441548d09b09c7b76426e4bc20
mkosi-initrd/vm: ensure TPM2 core modules are installed in the initrd

On arm64 the tpm_tis modules are not built-in, so /dev/tpmrm0 does
not show up in the initrd and it times out, and unlocking using
the tpm doesn't work.
Ensure the modules are included in the initrd if they are not
built in.

Jul 28 23:19:45 localhost systemd[1]: Expecting device dev-tpmrm0.device - /dev/tpmrm0...
Jul 28 23:19:48 localhost (udev-worker)[212]: ctx=0xaaab038cd650 path=/lib/modules/6.12.33+deb13-cloud-arm64/kernel/drivers/char/tpm/tpm_tis_core.ko.xz error=No such file or directory
Jul 28 23:19:49 localhost (udev-worker)[210]: ctx=0xaaab038cd650 path=/lib/modules/6.12.33+deb13-cloud-arm64/kernel/drivers/char/tpm/tpm_tis_core.ko.xz error=No such file or directory
Jul 28 23:21:11 localhost systemd[1]: dev-tpmrm0.device: Job dev-tpmrm0.device/start timed out.

https://oracle.github.io/kconfigs/?config=UTS_RELEASE&config=TCG_TIS&config=TCG_TIS_CORE
mkosi/resources/mkosi-initrd/mkosi.conf
mkosi/resources/mkosi-vm/mkosi.conf