From 5d1c3a8305a98089dd3efed948a89a6d0ff2a8b0 Mon Sep 17 00:00:00 2001 From: Sefa Eyeoglu Date: Sat, 16 Nov 2024 16:26:20 +0100 Subject: [PATCH] BPiR4: disable systemd TPM2 support When using a systemd based stage-1, the systemd instance is configured to enable TPM support by default and this by extension makes NixOS add the TPM kernel modules to the list of modules to include in the initrd. As this hardware does not have a TPM available, TPM modules are not built, and thus not available. Disable TPM support to remove this dependnecy and allow initrd builds to succeed. Related https://github.com/NixOS/nixpkgs/issues/344963 Signed-off-by: Sefa Eyeoglu Signed-off-by: Sachi King --- modules/boards/bananapi/bpir4/default.nix | 2 ++ 1 file changed, 2 insertions(+) diff --git a/modules/boards/bananapi/bpir4/default.nix b/modules/boards/bananapi/bpir4/default.nix index a322d56..4b86a63 100644 --- a/modules/boards/bananapi/bpir4/default.nix +++ b/modules/boards/bananapi/bpir4/default.nix @@ -68,6 +68,8 @@ boot.initrd.includeDefaultModules = false; boot.initrd.kernelModules = ["mii"]; boot.initrd.availableKernelModules = ["nvme"]; + # Disable TPM hard dependency in systemd based stage 1 + boot.initrd.systemd.tpm2.enable = false; hardware.deviceTree.filter = "mt7988a-bananapi-bpi-r4.dtb"; hardware.deviceTree.overlays = [