discover: populate udev device types
[petitboot] / discover / udev.c
index 309a749acfbad20787e703f256216be11f017d08..d13ced7a22d175cf9684511d41e7ba52289d6020 100644 (file)
@@ -126,6 +126,7 @@ static int udev_handle_dev_action(struct udev_device *dev, const char *action)
        event->n_params = 0;
        event->params = NULL;
        event_set_param(event, "DEVNAME", devnode);
+       event_set_param(event, "type", devtype);
 
        udev_setup_event_params(dev, event);