mirror of
https://github.com/NixOS/nixpkgs.git
synced 2025-11-10 01:33:11 +01:00
Ever since fb49d81b25 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)
|
|
'';
|
|
}
|