From: Daan De Meyer Date: Tue, 22 Apr 2025 08:54:25 +0000 (+0200) Subject: udev: serialize queued events on exit (#37047) X-Git-Tag: v258-rc1~764 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=505492d61c36985f72fee1952a7fe397b3193a6a;p=thirdparty%2Fsystemd.git udev: serialize queued events on exit (#37047) Previously, all queued events were discarded on exit, hence several events might not be processed by udevd when it is restarted. Such situation especially easily happens on switching root. This makes queued events serialized on exit, and deserialized in the next invocation. Hence, no events should be lost during restarting udevd. This is important with the several aspects. Basically systemd-udev-trigger.service (re)triggers all devices anyway after switching root, But the service may be disabled or modified by admin. Moreover, the service produces only 'add' events, and thus the service cannot cover events with other actions generated by the kernel during switching root. Also, the userspace triggered events may not contain some parameters compared with events triggered by the kernel. --- 505492d61c36985f72fee1952a7fe397b3193a6a