forked from mirrors/nixpkgs
* Do a nixos-rebuild in the installed machine and then reboot again to
see if the system still boots. svn path=/nixos/trunk/; revision=19279
This commit is contained in:
parent
ed7d096624
commit
381a38f5fe
|
@ -109,13 +109,19 @@ rec {
|
|||
|
||||
$machine->mustSucceed("echo hello");
|
||||
|
||||
$machine->mustSucceed("nix-env -i coreutils");
|
||||
$machine->mustSucceed("nix-env -i coreutils >&2");
|
||||
$machine->mustSucceed("type -tP ls") =~ /profiles/
|
||||
or die "nix-env failed";
|
||||
|
||||
#$machine->mustSucceed("nixos-rebuild switch >&2");
|
||||
$machine->mustSucceed("nixos-rebuild switch >&2");
|
||||
|
||||
$machine->shutdown;
|
||||
|
||||
# And just to be sure, check that the machine still boots after
|
||||
# "nixos-rebuild switch".
|
||||
my $machine = Machine->new({ hda => "harddisk" });
|
||||
$machine->mustSucceed("echo hello");
|
||||
$machine->shutdown;
|
||||
'';
|
||||
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue