diff options
| author | tv <tv@krebsco.de> | 2026-11-16 11:48:28 +0000 |
|---|---|---|
| committer | tv <tv@krebsco.de> | 2026-11-16 11:48:28 +0000 |
| commit | 4fb0752c37023856b802e77a9153db6c319c2c17 (patch) | |
| tree | 1a439e2cb5f311ad22193febe8ced601b83847c1 | |
| parent | a2b3ca7b1732851c27b90d7249747e2b8ef2f16d (diff) | |
skip journal catalog, update-done and lastlog; volatile journal
With an empty /var on every boot, systemd-journal-catalog-update and
systemd-update-done run every time (ConditionNeedsUpdate=/var), and
they're in the critical path to sysinit.target. Suppress them.
Keep the journal in /run, so systemd-journal-flush has nothing to do, and
drop pam_lastlog2 from login, which also gets rid of
lastlog2-import.service.
| -rw-r--r-- | default.nix | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/default.nix b/default.nix index b0af4ff..d562380 100644 --- a/default.nix +++ b/default.nix @@ -79,6 +79,15 @@ let systemd.oomd.enable = false; systemd.tpm2.enable = false; users.manageLingering = false; + + # /var is empty on every boot, which makes these run every time, + # in the critical path to sysinit.target. + systemd.suppressedSystemUnits = [ + "systemd-journal-catalog-update.service" + "systemd-update-done.service" + ]; + services.journald.storage = "volatile"; # don't flush to /var/log + security.pam.services.login.lastlog.enable = lib.mkForce false; }; }; |
