nixosTests.systemd-initrd-luks-tpm2: mount the host Nix store

Same rationale as caf6f41e2e.
This commit is contained in:
Raito Bezarius 2023-05-25 19:07:54 +02:00
parent e190364fd7
commit efe64826c9

View File

@ -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"];
};