2013-09-16 17:15:42 +02:00
|
|
|
# Test whether fast reboots via kexec work.
|
|
|
|
|
2019-12-24 16:17:39 +01:00
|
|
|
import ./make-test-python.nix ({ pkgs, lib, ...} : {
|
2014-06-28 16:04:49 +02:00
|
|
|
name = "kexec";
|
2019-12-24 16:17:39 +01:00
|
|
|
meta = with lib.maintainers; {
|
2019-02-22 16:14:13 +01:00
|
|
|
maintainers = [ eelco ];
|
2019-12-24 16:17:39 +01:00
|
|
|
# Currently hangs forever; last output is:
|
|
|
|
# machine # [ 10.239914] dhcpcd[707]: eth0: adding default route via fe80::2
|
|
|
|
# machine: waiting for the VM to finish booting
|
|
|
|
# machine # Cannot find the ESP partition mount point.
|
|
|
|
# machine # [ 28.681197] nscd[692]: 692 checking for monitored file `/etc/netgroup': No such file or directory
|
|
|
|
broken = true;
|
2015-07-12 12:09:40 +02:00
|
|
|
};
|
2013-09-16 17:15:42 +02:00
|
|
|
|
2018-07-20 22:56:59 +02:00
|
|
|
machine = { ... }:
|
2013-09-16 17:15:42 +02:00
|
|
|
{ virtualisation.vlans = [ ]; };
|
|
|
|
|
|
|
|
testScript =
|
|
|
|
''
|
2019-12-24 16:17:39 +01:00
|
|
|
machine.wait_for_unit("multi-user.target")
|
2021-11-05 01:43:22 +01:00
|
|
|
machine.execute("systemctl kexec >&2 &", check_return=False)
|
2019-12-24 16:17:39 +01:00
|
|
|
machine.connected = False
|
|
|
|
machine.wait_for_unit("multi-user.target")
|
2013-09-16 17:15:42 +02:00
|
|
|
'';
|
2015-07-12 12:09:40 +02:00
|
|
|
})
|