diff options
author | Raito Bezarius <masterancpp@gmail.com> | 2023-05-25 19:02:28 +0200 |
---|---|---|
committer | Raito Bezarius <masterancpp@gmail.com> | 2023-06-08 16:55:04 +0200 |
commit | caf6f41e2e1b05525e127f5ab5eb2c335ae40a91 (patch) | |
tree | e430b094aeb78ea8e339739c6de0d66a1109054b /nixos/tests/initrd-luks-empty-passphrase.nix | |
parent | e6e049b7a24decd1f0caee8b035913795697c699 (diff) |
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?
Diffstat (limited to 'nixos/tests/initrd-luks-empty-passphrase.nix')
-rw-r--r-- | nixos/tests/initrd-luks-empty-passphrase.nix | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/nixos/tests/initrd-luks-empty-passphrase.nix b/nixos/tests/initrd-luks-empty-passphrase.nix index d2805f2f17342..521456e7e0b29 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; |