diff options
author | Raito Bezarius <masterancpp@gmail.com> | 2023-05-25 19:07:54 +0200 |
---|---|---|
committer | Raito Bezarius <masterancpp@gmail.com> | 2023-06-08 16:55:52 +0200 |
commit | efe64826c9a9a7feb6148c60c888d7ce9d882011 (patch) | |
tree | f4e65a58f057c201fae5e542ce083d374ad322f0 /nixos | |
parent | e190364fd72815d636bc2c7a48752155643f75fc (diff) |
nixosTests.systemd-initrd-luks-tpm2: mount the host Nix store
Same rationale as caf6f41e2e1.
Diffstat (limited to 'nixos')
-rw-r--r-- | nixos/tests/systemd-initrd-luks-tpm2.nix | 2 |
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 734ef38579f0..73aa190ad620 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"]; }; |