nixpkgs/nixos/tests/systemd-pstore.nix
nikstur e9c71d971f nixos/filesystem: remove mount-pstore
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.
2025-08-08 19:03:05 +02:00

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)
'';
}