]> git.ipfire.org Git - thirdparty/plymouth.git/commitdiff
device-manager: only pass scan a device passes all checks
authorRay Strode <rstrode@redhat.com>
Fri, 10 Jan 2014 23:12:57 +0000 (18:12 -0500)
committerRay Strode <rstrode@redhat.com>
Fri, 10 Jan 2014 23:12:57 +0000 (18:12 -0500)
Right now scan_graphics_devices returns true, if a device is found,
even if that device doesn't get used because it's not fully
initialized.

src/libply-splash-core/ply-device-manager.c

index 2b46cd659c72fd60685f8456f48bd253c8f21e66..991274dd8fd4d04a501b00f8a28cd8eee652c4c4 100644 (file)
@@ -283,7 +283,6 @@ scan_graphics_devices (ply_device_manager_t *manager)
       if (strcmp (fb_path, "/sys/devices/virtual/graphics/fbcon") == 0)
         continue;
 
-      found_device = true;
       ply_trace ("found device %s", fb_path);
 
       fb_device = udev_device_new_from_syspath (manager->udev_context, fb_path);
@@ -302,6 +301,7 @@ scan_graphics_devices (ply_device_manager_t *manager)
               if (fb_node != NULL)
                 {
                   ply_trace ("found node %s", fb_node);
+                  found_device = true;
                   create_seat_for_udev_device (manager, fb_device);
                 }
             }