]> git.ipfire.org Git - thirdparty/mkosi.git/commitdiff
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)
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

index 15928c0f9b65916111e55719efff76466a0adae7..4addb066c977579093ddd60b6aab278d3cf268be 100644 (file)
@@ -102,6 +102,7 @@ KernelModules=
         snd-soc-hda-codec
         squashfs
         thunderbolt_net
+        tpm_tis
         ttm
         typec_ucsi
         ucsi_acpi
index ade1036530d4854cfa7c711a26d5b3510e813529..bc48f64c8a35732591b4bf0e6c78a70f3a0effb4 100644 (file)
@@ -15,3 +15,6 @@ Packages=
         strace
         systemd
         udev
+
+KernelInitrdModules=
+        tpm_tis