Merge pull request #85073 from hyperfekt/systemd-pstore

nixos/systemd|filesystems: mount and evacuate /sys/fs/pstore using systemd-pstore
This commit is contained in:
Florian Klink
2021-05-17 00:00:52 +02:00
committed by GitHub
4 changed files with 46 additions and 4 deletions
@@ -99,5 +99,13 @@ with lib;
# because we have the firewall enabled. This makes installs from the
# console less cumbersome if the machine has a public IP.
networking.firewall.logRefusedConnections = mkDefault false;
# Prevent installation media from evacuating persistent storage, as their
# var directory is not persistent and it would thus result in deletion of
# those entries.
environment.etc."systemd/pstore.conf".text = ''
[PStore]
Unlink=no
'';
};
}