Skip to content

Commit

Permalink
BPiR4: disable systemd TPM2 support
Browse files Browse the repository at this point in the history
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 NixOS/nixpkgs#344963

Signed-off-by: Sefa Eyeoglu <contact@scrumplex.net>
Signed-off-by: Sachi King <nakato@nakato.io>
  • Loading branch information
Scrumplex authored and nakato committed Nov 17, 2024
1 parent 85a78eb commit 5d1c3a8
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions modules/boards/bananapi/bpir4/default.nix
Original file line number Diff line number Diff line change
Expand Up @@ -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 = [
Expand Down

0 comments on commit 5d1c3a8

Please sign in to comment.