
Ever since fb49d81b2541bd06fbaef6f516906381e7356947 we set CONFIG_PSTORE=y in the config because we set CONIFG_ACPI_APEI=y in the kernel. This means we always have pstore built right into the kernel. systemd thus always mounts `/sys/fs/pstore` which makes our custom unit superfluous and redudant.
15 lines
393 B
Nix
15 lines
393 B
Nix
{
|
|
name = "systemd-pstore";
|
|
|
|
nodes.machine = { };
|
|
|
|
testScript = ''
|
|
with subtest("pstore API fs is mounted"):
|
|
machine.succeed("stat /sys/fs/pstore")
|
|
|
|
with subtest("systemd-pstore.service doesn't run because nothing crashed"):
|
|
output = machine.execute("systemctl status systemd-pstore.service", check_return=False)[1]
|
|
t.assertIn("condition unmet", output)
|
|
'';
|
|
}
|