]> git.ipfire.org Git - thirdparty/systemd.git/commit
core/device: ignore ID_PROCESSING udev property on enumerate
authorYu Watanabe <watanabe.yu+github@gmail.com>
Sun, 24 Nov 2024 04:19:27 +0000 (13:19 +0900)
committerZbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl>
Fri, 29 Nov 2024 13:26:56 +0000 (14:26 +0100)
commit69a95d442f13fc64e5a6b14a5b09da8e4e284664
tree5038cfe1a488a4870cedaa20a5c3f8236265e428
parentce997e944f66da452ed01b86b838508ee132abb7
core/device: ignore ID_PROCESSING udev property on enumerate

This partially reverts the commit 405be62f05d76f1845f347737b5972158c79dd3e
"tree-wide: refuse enumerated device with ID_PROCESSING=1".

Otherwise, when systemd-udev-trigger.service is (re)started just before
daemon-reexec, which can be easily happen on systemd package update, then
udev database files for many devices may have ID_PROCESSING=1 property,
thus devices may not be enumerated on daemon-reexec. That causes many
units especially mount units being deactivated after daemon-reexec.

Fixes #35329.

(cherry picked from commit c4fc22c4defc5983e53f4ce048e15ea7d31e6a75)
src/core/device.c