From: Lennart Poettering Date: Thu, 21 May 2015 18:43:21 +0000 (+0200) Subject: device: never act on mount events for devices if device support is not available X-Git-Tag: v220~8 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=4c6d20dece1da97c31cd88ddebc007bf33204b82;p=thirdparty%2Fsystemd.git device: never act on mount events for devices if device support is not available --- diff --git a/src/core/device.c b/src/core/device.c index c784cabbb5a..e7efcf0f0a7 100644 --- a/src/core/device.c +++ b/src/core/device.c @@ -771,6 +771,9 @@ int device_found_node(Manager *m, const char *node, bool add, DeviceFound found, assert(m); assert(node); + if (!device_supported()) + return 0; + /* This is called whenever we find a device referenced in * /proc/swaps or /proc/self/mounts. Such a device might be * mounted/enabled at a time where udev has not finished