fix(system_baseline): accept every size journald reads for the journal cap
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:
1 parent
5ac8eadac1
commit
985995656a
5 files changed
+21
-18
No files matched your search
@@ -4,6 +4,7 @@ minor_changes:
|
||||
system_baseline - ``system_baseline_journal_max_use`` can be empty to leave journald alone: the role then writes no drop-in and does not
|
||||
restart ``systemd-journald``. The default stays ``200M``.
|
||||
- >-
|
||||
system_baseline - ``system_baseline_journal_max_use`` is checked before any change: it must be empty, ``infinity`` or a number followed by
|
||||
``K``, ``M``, ``G`` or ``T``. A value in any other form, which the role used to write into the drop-in as it was (a bare number, ``1.5G``,
|
||||
a typo, a line break), now stops the run; an empty value used to write an empty ``SystemMaxUse=``.
|
||||
system_baseline - ``system_baseline_journal_max_use`` is checked before any change: it must be empty or a size journald reads, a number
|
||||
with an optional upper-case ``B``, ``K``, ``M``, ``G``, ``T``, ``P`` or ``E``. A value journald rejects, which the role used to write into
|
||||
the drop-in as it was and journald then ignored (``infinity``, a lower-case unit, a line break), now stops the run; an empty value used to
|
||||
write an empty ``SystemMaxUse=``.
|
||||
Reference in new issue
Block a user