]> git.ipfire.org Git - thirdparty/systemd.git/commit
device: skip deserialization of device units when udevd is not running 8675/head
authorFranck Bui <fbui@suse.com>
Tue, 17 Apr 2018 13:12:06 +0000 (15:12 +0200)
committerFranck Bui <fbui@suse.com>
Fri, 20 Apr 2018 15:49:28 +0000 (17:49 +0200)
commit036d2eefaee2b64e7946ef19de9b0b94b60e8955
treedfcc517362bf25c3643b19618266c7461fca59ee
parent918e6f1c0151429f5095355f4f3f74f16e79724a
device: skip deserialization of device units when udevd is not running

Do not try to party initialize a device during deserialization if it's not
known by udev (anymore) and therefore hasn't been seen during device
enumeration.

The device unit in this case has not been initialized properly and setting it
in the "plugged" state can be confusing.

Actually this happens during every boots when PID switches to the new rootfs:
PID is reexecuted and enumerates devices but since udev is not running, the
list of enumerated devices is empty.
src/core/device.c