diff options
author | Alan Jenkins <alan.christopher.jenkins@gmail.com> | 2017-08-15 14:22:44 +0100 |
---|---|---|
committer | Alan Jenkins <alan.christopher.jenkins@gmail.com> | 2017-08-15 14:22:44 +0100 |
commit | 1d422b153bf9e9409e95e7596a2ea59cdb9e7b19 (patch) | |
tree | a48dac1bad79345ee948f3c9c3149d2682671138 /units/systemd-udev-trigger.service.in | |
parent | units: Sockets= already implies Wants= and After= (systemd-udevd.service) (diff) | |
download | systemd-1d422b153bf9e9409e95e7596a2ea59cdb9e7b19.tar.gz systemd-1d422b153bf9e9409e95e7596a2ea59cdb9e7b19.tar.bz2 systemd-1d422b153bf9e9409e95e7596a2ea59cdb9e7b19.zip |
units: order service(s) before udevd, not udev-trigger (coldplug)
Since hotplugs happen as soon as udevd is started, there is not much sense
in giving udev-trigger an After= dependency on any service. The device
could be hotplugged before coldplug starts.
This is intended to avoid the race window where we create the hwdb with
the wrong selinux context (then fix it up afterwards).
https://github.com/systemd/systemd/issues/3458#issuecomment-322444107
Diffstat (limited to 'units/systemd-udev-trigger.service.in')
-rw-r--r-- | units/systemd-udev-trigger.service.in | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/units/systemd-udev-trigger.service.in b/units/systemd-udev-trigger.service.in index 1e04d11fe..0c33909ce 100644 --- a/units/systemd-udev-trigger.service.in +++ b/units/systemd-udev-trigger.service.in @@ -10,7 +10,7 @@ Description=udev Coldplug all Devices Documentation=man:udev(7) man:systemd-udevd.service(8) DefaultDependencies=no Wants=systemd-udevd.service -After=systemd-udevd-kernel.socket systemd-udevd-control.socket systemd-hwdb-update.service +After=systemd-udevd-kernel.socket systemd-udevd-control.socket Before=sysinit.target ConditionPathIsReadWrite=/sys |