summary refs log tree commit diff
path: root/nixos/tests/os-prober.nix
diff options
context:
space:
mode:
authorGuillaume Girol <symphorien+git@xlumurb.eu>2021-12-09 12:00:00 +0000
committerGuillaume Girol <symphorien+git@xlumurb.eu>2021-12-09 12:00:00 +0000
commit6f2ed3cd1e0a8de8ec132c7e1d6d821ce4ab9e2f (patch)
tree2f7a4e1c6dfcdf0ace3f41ca37f0de7369dccc15 /nixos/tests/os-prober.nix
parent4f984654eeb4cee3d47ba896f626e486b362be8c (diff)
downloadnixpkgs-6f2ed3cd1e0a8de8ec132c7e1d6d821ce4ab9e2f.tar
nixpkgs-6f2ed3cd1e0a8de8ec132c7e1d6d821ce4ab9e2f.tar.gz
nixpkgs-6f2ed3cd1e0a8de8ec132c7e1d6d821ce4ab9e2f.tar.bz2
nixpkgs-6f2ed3cd1e0a8de8ec132c7e1d6d821ce4ab9e2f.tar.lz
nixpkgs-6f2ed3cd1e0a8de8ec132c7e1d6d821ce4ab9e2f.tar.xz
nixpkgs-6f2ed3cd1e0a8de8ec132c7e1d6d821ce4ab9e2f.tar.zst
nixpkgs-6f2ed3cd1e0a8de8ec132c7e1d6d821ce4ab9e2f.zip
nixosTests.os-prober: fix infinite recursion
Diffstat (limited to 'nixos/tests/os-prober.nix')
-rw-r--r--nixos/tests/os-prober.nix6
1 files changed, 3 insertions, 3 deletions
diff --git a/nixos/tests/os-prober.nix b/nixos/tests/os-prober.nix
index a7b955d4472..c1e29b0f68b 100644
--- a/nixos/tests/os-prober.nix
+++ b/nixos/tests/os-prober.nix
@@ -53,12 +53,12 @@ let
   };
   # /etc/nixos/configuration.nix for the vm
   configFile = pkgs.writeText "configuration.nix"  ''
-    {config, pkgs, ...}: ({
+    {config, pkgs, lib, ...}: ({
     imports =
           [ ./hardware-configuration.nix
             <nixpkgs/nixos/modules/testing/test-instrumentation.nix>
           ];
-    } // pkgs.lib.importJSON ${
+    } // lib.importJSON ${
       pkgs.writeText "simpleConfig.json" (builtins.toJSON simpleConfig)
     })
   '';
@@ -114,7 +114,7 @@ in {
         "${configFile}",
         "/etc/nixos/configuration.nix",
     )
-    machine.succeed("nixos-rebuild boot >&2")
+    machine.succeed("nixos-rebuild boot --show-trace >&2")
 
     machine.succeed("egrep 'menuentry.*debian' /boot/grub/grub.cfg")
   '';