Files
packages/net/modemmanager/files
Michael Pfeifroth 6bdd3fd033 modemmanager: suppress hotplug log noise
Backport the modemmanager hotplug noise reduction from master.

On every boot and hotplug replay each net/tty/wwan uevent is handed to
mm_report_event via the hotplug scripts, which log an info "event
processed" line to daemon.info before mm_report_event decides whether
the device is relevant.  On a target with SQM tunnels, bridges and veth
that is dozens of pointless info lines per boot.  In addition, procd
replays every uevent before /etc/init.d/modemmanager starts, so the live
mmcli --report-kernel-event call fails with "couldn't get bus" and is
logged as daemon.err per modem port.

Make mm_report_event the single authority on what is worth reporting: it
now returns non-zero when it drops a virtual device (keeping the QMAP/
QMI/MBIM multiplexing netdevices qmapmux*/qmimux*/mbimmux*, which are
virtual but are real modem data ports) and returns success when it caches
an event for a not-yet-running ModemManager.  The hotplug scripts only
emit their "event processed" info log when the event was actually
reported.  The live mmcli call is skipped while ModemManager is down; the
wrapper replays the cache once it is up.

This combines the master commits below into a single change; the
intermediate /devices/virtual guard of 7885dff933, which wrongly
dropped the mux data ports, is superseded by the mm_report_event based
filtering and is therefore not applied on its own.

(cherry picked from commit 187382d9d1)
(cherry picked from commit f094afbed0)
Signed-off-by: Michael Pfeifroth <micpf@westermo.com>
2026-09-23 07:37:43 +02:00
..