1# Test whether fast reboots via kexec work.
2
3import ./make-test.nix ({ pkgs, ...} : {
4 name = "kexec";
5 meta = with pkgs.stdenv.lib.maintainers; {
6 maintainers = [ eelco chaoflow ];
7 };
8
9 machine = { config, pkgs, ... }:
10 { virtualisation.vlans = [ ]; };
11
12 testScript =
13 ''
14 $machine->waitForUnit("multi-user.target");
15 $machine->execute("systemctl kexec &");
16 $machine->{connected} = 0;
17 $machine->waitForUnit("multi-user.target");
18 '';
19})