From caf6f41e2e1b05525e127f5ab5eb2c335ae40a91 Mon Sep 17 00:00:00 2001 From: Raito Bezarius Date: Thu, 25 May 2023 19:02:28 +0200 Subject: [PATCH] nixosTests.initrd-luks-empty-passphrase: mount the host nix store This is necessary because this test relies on switching the root fs to an empty one which does not have a Nix store available in stage 1, therefore, we have to make this test host-store only. A better fix in the long term is to evaluate whether this is worth to enable a proper Nix store image for it with EROFS? --- nixos/tests/initrd-luks-empty-passphrase.nix | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/nixos/tests/initrd-luks-empty-passphrase.nix b/nixos/tests/initrd-luks-empty-passphrase.nix index d2805f2f1734..521456e7e0b2 100644 --- a/nixos/tests/initrd-luks-empty-passphrase.nix +++ b/nixos/tests/initrd-luks-empty-passphrase.nix @@ -18,6 +18,11 @@ in { emptyDiskImages = [ 512 ]; useBootLoader = true; useEFIBoot = true; + # This requires to have access + # to a host Nix store as + # the new root device is /dev/vdb + # an empty 512MiB drive, containing no Nix store. + mountHostNixStore = true; }; boot.loader.systemd-boot.enable = true;