fix(system_baseline): accept every size journald reads for the journal cap
Build / build (pull_request) Successful in 48s
Lint / lint (pull_request) Successful in 2m47s
Molecule / molecule (pull_request) Successful in 6m7s

The new check on system_baseline_journal_max_use refused sizes journald
accepts (a bare byte count, 1.5G, 10 M, P and E units), which 3.1.0
wrote as given, and accepted infinity, which SystemMaxUse does not take.
The check now follows journald's parse_size(): a number with an
optional upper-case B, K, M, G, T, P or E, still with no line break.

Assisted-by: Claude Code
This commit is contained in:
Defame1297 committed 2026-11-27 21:24:32 +00:00
1 parent 5ac8eadac1
commit 985995656a
5 files changed
+21 -18

No files matched your search

@@ -56,8 +56,9 @@ argument_specs:
- Upper bound of the persistent systemd journal (journald C(SystemMaxUse), for example C(200M)).
- Written to a drop-in under C(/etc/systemd/journald.conf.d).
- >-
A number and one of C(K), C(M), C(G), C(T), or C(infinity); anything else (a bare number, a space, a line break) is refused
before any change. Empty leaves the host alone: no drop-in is written and journald is not restarted.
A size journald reads, a number with an optional upper-case unit C(B), C(K), C(M), C(G), C(T), C(P) or C(E) (a bare number
is bytes); anything else (C(infinity), a lower-case unit, a line break) is refused before any change. Empty leaves the host
alone: no drop-in is written and journald is not restarted.
Clearing the value later does not remove a file already written.
system_baseline_tmux_autostart:
type: bool