From 6dafee8d6704957e123de1b51d3e406848f4aac8 Mon Sep 17 00:00:00 2001 From: Eelco Dolstra Date: Wed, 16 Oct 2013 11:36:09 +0200 Subject: Fix runInMachine It requires a writable /nix/store to store the build result. Also, wait until we've reached multi-user.target before doing the build, and do a sync at the end to ensure all data to $out is properly written. http://hydra.nixos.org/build/6496716 --- nixos/tests/run-in-machine.nix | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) (limited to 'nixos/tests') diff --git a/nixos/tests/run-in-machine.nix b/nixos/tests/run-in-machine.nix index 75bd161ec9ef..8efe26c17082 100644 --- a/nixos/tests/run-in-machine.nix +++ b/nixos/tests/run-in-machine.nix @@ -1,10 +1,8 @@ -{ nixpkgs ? -, system ? builtins.currentSystem -}: +{ system ? builtins.currentSystem }: with import ../lib/testing.nix { inherit system; }; runInMachine { - drv = (import nixpkgs { inherit system; }).aterm; + drv = pkgs.patchelf; machine = { config, pkgs, ... }: { services.sshd.enable = true; }; } -- cgit 1.4.1