about summary refs log tree commit diff
path: root/nixos/tests/systemd-initrd-luks-tpm2.nix
diff options
context:
space:
mode:
authorRaito Bezarius <masterancpp@gmail.com>2023-05-25 19:07:54 +0200
committerRaito Bezarius <masterancpp@gmail.com>2023-06-08 16:55:52 +0200
commitefe64826c9a9a7feb6148c60c888d7ce9d882011 (patch)
treef4e65a58f057c201fae5e542ce083d374ad322f0 /nixos/tests/systemd-initrd-luks-tpm2.nix
parente190364fd72815d636bc2c7a48752155643f75fc (diff)
nixosTests.systemd-initrd-luks-tpm2: mount the host Nix store
Same rationale as caf6f41e2e1.
Diffstat (limited to 'nixos/tests/systemd-initrd-luks-tpm2.nix')
-rw-r--r--nixos/tests/systemd-initrd-luks-tpm2.nix2
1 files changed, 2 insertions, 0 deletions
diff --git a/nixos/tests/systemd-initrd-luks-tpm2.nix b/nixos/tests/systemd-initrd-luks-tpm2.nix
index 734ef38579f0d..73aa190ad620c 100644
--- a/nixos/tests/systemd-initrd-luks-tpm2.nix
+++ b/nixos/tests/systemd-initrd-luks-tpm2.nix
@@ -6,6 +6,8 @@ import ./make-test-python.nix ({ lib, pkgs, ... }: {
     virtualisation = {
       emptyDiskImages = [ 512 ];
       useBootLoader = true;
+      # Booting off the TPM2-encrypted device requires an available init script
+      mountHostNixStore = true;
       useEFIBoot = true;
       qemu.options = ["-chardev socket,id=chrtpm,path=/tmp/mytpm1/swtpm-sock -tpmdev emulator,id=tpm0,chardev=chrtpm -device tpm-tis,tpmdev=tpm0"];
     };