mirror of
https://github.com/morgan9e/systemd
synced 2026-04-14 08:25:20 +09:00
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:
@@ -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);
|
||||
|
||||
@@ -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
|
||||
|
||||
|
||||
Reference in New Issue
Block a user