From 88116909ec60724ddce47feb2cc40c52bdb81bdf Mon Sep 17 00:00:00 2001 From: Lennart Poettering Date: Wed, 20 Jun 2018 22:54:55 +0200 Subject: core: explicitly trigger changing udev SYSTEMD_WANTS properties This compensates for the unsynchronized reload cycles of systemd and udev: we manually trigger the deps listed in SYSTEMD_WANTS properties if they change for device units that are already up. That way all deps defined that way will be triggered at least once: the first time the unit goes up by the usual dependency logic, and if it already is up by the device.c specific logic. Fixes: #9323 --- src/core/device.h | 3 +++ 1 file changed, 3 insertions(+) (limited to 'src/core/device.h') diff --git a/src/core/device.h b/src/core/device.h index a5f9bbe58c..a119b33e57 100644 --- a/src/core/device.h +++ b/src/core/device.h @@ -30,6 +30,9 @@ struct Device { DeviceFound found, deserialized_found, enumerated_found; bool bind_mounts; + + /* The SYSTEMD_WANTS udev property for this device the last time we saw it */ + char **wants_property; }; extern const UnitVTable device_vtable; -- cgit v1.2.3