blob: 24870eaf428a2ba7ad671f8870edc9f4e30c5a15 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
|
{ lib, ... }:
{
name = "systemd-initrd-terminfo";
meta.maintainers = [ lib.maintainers.elvishjerricco ];
nodes.machine =
{ config, ... }:
{
boot.initrd.systemd = {
enable = true;
extraBin.script = "${config.boot.initrd.systemd.package.util-linux}/bin/script";
};
testing.initrdBackdoor = true;
};
testScript = ''
machine.wait_for_unit("initrd.target")
rc, out = machine.execute("echo q | script -q -e -c 'yes | less' /dev/null")
assert "terminals database is inaccessible" not in out
'';
}
|