summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorLennart Poettering <lennart@poettering.net>2015-05-21 20:43:21 +0200
committerLennart Poettering <lennart@poettering.net>2015-05-21 20:49:24 +0200
commit4c6d20dece1da97c31cd88ddebc007bf33204b82 (patch)
treeab0f1f47173bc71342de44102e8d98ed34aace60
parentcore: properly handle jobs that are suppressed to JOB_NOPs when propagating r... (diff)
downloadsystemd-4c6d20dece1da97c31cd88ddebc007bf33204b82.tar.xz
systemd-4c6d20dece1da97c31cd88ddebc007bf33204b82.zip
device: never act on mount events for devices if device support is not available
-rw-r--r--src/core/device.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/core/device.c b/src/core/device.c
index c784cabbb5..e7efcf0f0a 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