mirror of
https://github.com/systemd/systemd-stable.git
synced 2024-12-22 13:33:56 +03:00
device: never act on mount events for devices if device support is not available
This commit is contained in:
parent
48894cd07c
commit
4c6d20dece
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user