systemd-analyze: stop printing Ex transient settings

The test will fail if we ever add one again in the future by mistake.
This commit is contained in:
Zbigniew Jędrzejewski-Szmek
2025-07-05 13:01:18 +02:00
parent 41288f2daf
commit 228d84e37a
2 changed files with 4 additions and 1 deletions

View File

@@ -2880,9 +2880,11 @@ void bus_dump_transient_settings(UnitType t) {
for (const BusProperty *item = *tables; item->convert; item++) {
assert(item->name || item->dump);
/* Do not print deprecated names */
/* Do not print deprecated names. All "Ex" variants are deprecated. */
if (item->convert == warn_deprecated)
continue;
if (item->name && endswith(item->name, "Ex"))
continue;
if (item->name)
puts(item->name);

View File

@@ -1115,6 +1115,7 @@ systemd-analyze transient-settings mount | grep CPUQuotaPeriodSec
(! systemd-analyze transient-settings service | grep CPUAccounting )
(! systemd-analyze transient-settings service | grep ConditionKernelVersion )
(! systemd-analyze transient-settings service | grep AssertKernelVersion )
(! systemd-analyze transient-settings service socket timer path slice scope mount automount | grep -E 'Ex$' )
systemd-analyze log-level info