diff options
author | Jörg Thalheim <Mic92@users.noreply.github.com> | 2023-01-24 22:05:45 +0000 |
---|---|---|
committer | GitHub <noreply@github.com> | 2023-01-24 22:05:45 +0000 |
commit | 9ccde6dcca11a8b9279b61272223c7cfb4b9620d (patch) | |
tree | 88c0531ee4bf799467b98e941a22b31ac2de1a94 /nixos/modules | |
parent | 745456072a079a6b256233b0c68e14abda569ffa (diff) | |
parent | 86d5b672601a8df3ed828ac5655be538ccf4d5d6 (diff) |
Merge pull request #212268 from Mic92/tpm-crb-riscv64
disable tpm-crb on riscv64
Diffstat (limited to 'nixos/modules')
-rw-r--r-- | nixos/modules/system/boot/systemd/initrd.nix | 8 |
1 files changed, 5 insertions, 3 deletions
diff --git a/nixos/modules/system/boot/systemd/initrd.nix b/nixos/modules/system/boot/systemd/initrd.nix index d30f61146e189..620d76aef20d8 100644 --- a/nixos/modules/system/boot/systemd/initrd.nix +++ b/nixos/modules/system/boot/systemd/initrd.nix @@ -343,9 +343,11 @@ in { system.build = { inherit initialRamdisk; }; boot.initrd.availableKernelModules = [ - "autofs4" # systemd needs this for some features - "tpm-tis" "tpm-crb" # systemd-cryptenroll - ]; + # systemd needs this for some features + "autofs4" + # systemd-cryptenroll + "tpm-tis" + ] ++ lib.optional (pkgs.stdenv.hostPlatform.system != "riscv64-linux") "tpm-crb"; boot.initrd.systemd = { initrdBin = [pkgs.bash pkgs.coreutils cfg.package.kmod cfg.package] ++ config.system.fsPackages; |