summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorKay Sievers <kay@vrfy.org>2013-12-18 05:06:32 +0100
committerKay Sievers <kay@vrfy.org>2013-12-18 05:07:16 +0100
commit48b9cfcb7cfbcd7ab16cae809ebda32be77366bd (patch)
tree0cc7e1bd8421fa1e0d543c04ccf41b8861cf1571
parentbf5332d2bf2a1acbba9daacf40570a4addbd3411 (diff)
comment out udev's is_initialized call until the problem is sorted out
-rw-r--r--TODO8
-rw-r--r--src/core/device.c4
2 files changed, 12 insertions, 0 deletions
diff --git a/TODO b/TODO
index 8025169033..896008972d 100644
--- a/TODO
+++ b/TODO
@@ -1,4 +1,12 @@
Bugfixes:
+* sort-out libudev's is_initialized logic for:
+ - enumerate devices:
+ - is_initialized is true if a database exists
+ - monitor devices:
+ - is_initialized is always false; was not supposed to be used here
+ - in-container devices:
+ - is_initialized is always false, because there is no database
+
* enabling an instance unit creates a pointless link, and
the unit will be started with getty@getty.service:
$ systemctl enable getty@.service
diff --git a/src/core/device.c b/src/core/device.c
index 70fac1b8b7..c93c94726d 100644
--- a/src/core/device.c
+++ b/src/core/device.c
@@ -303,9 +303,13 @@ static int device_process_new_device(Manager *m, struct udev_device *dev) {
assert(m);
+#if 0
+ /* FIXME: this is always false for devices received from udev_monitor */
+
/* Don't pick up devices before udev finished initialization for them */
if (!udev_device_get_is_initialized(dev))
return 0;
+#endif
sysfs = udev_device_get_syspath(dev);
if (!sysfs)