summary refs log tree commit diff
path: root/nixos/tests/installer.nix
diff options
context:
space:
mode:
authorWill Fancher <elvishjerricco@gmail.com>2023-10-23 17:40:34 -0400
committerWill Fancher <elvishjerricco@gmail.com>2023-10-23 17:40:34 -0400
commit99a47a5e357689a136fd917819fd3a26e3012be3 (patch)
tree954ffb6d9069652067af7c8ee1f728fde4833b38 /nixos/tests/installer.nix
parent8dfad603247387df1df4826b8bea58efc5d012d8 (diff)
downloadnixpkgs-99a47a5e357689a136fd917819fd3a26e3012be3.tar
nixpkgs-99a47a5e357689a136fd917819fd3a26e3012be3.tar.gz
nixpkgs-99a47a5e357689a136fd917819fd3a26e3012be3.tar.bz2
nixpkgs-99a47a5e357689a136fd917819fd3a26e3012be3.tar.lz
nixpkgs-99a47a5e357689a136fd917819fd3a26e3012be3.tar.xz
nixpkgs-99a47a5e357689a136fd917819fd3a26e3012be3.tar.zst
nixpkgs-99a47a5e357689a136fd917819fd3a26e3012be3.zip
systemd-stage-1: Enable more encrypted installer tests
Diffstat (limited to 'nixos/tests/installer.nix')
-rw-r--r--nixos/tests/installer.nix4
1 files changed, 2 insertions, 2 deletions
diff --git a/nixos/tests/installer.nix b/nixos/tests/installer.nix
index 5111cedf925..4cd092756f5 100644
--- a/nixos/tests/installer.nix
+++ b/nixos/tests/installer.nix
@@ -511,7 +511,7 @@ let
       enableOCR = true;
       preBootCommands = ''
         machine.start()
-        machine.wait_for_text("Passphrase for")
+        machine.wait_for_text("[Pp]assphrase for")
         machine.send_chars("supersecret\n")
       '';
     };
@@ -765,7 +765,7 @@ in {
         encrypted.enable = true;
         encrypted.blkDev = "/dev/vda3";
         encrypted.label = "crypt";
-        encrypted.keyFile = "/mnt-root/keyfile";
+        encrypted.keyFile = "/${if systemdStage1 then "sysroot" else "mnt-root"}/keyfile";
       };
     '';
   };