summaryrefslogtreecommitdiffstats
path: root/discover/udev.c
diff options
context:
space:
mode:
authorJeremy Kerr <jk@ozlabs.org>2013-09-18 11:44:41 +0800
committerJeremy Kerr <jk@ozlabs.org>2013-09-18 11:44:41 +0800
commitbad9baa8794ed0c31b7f93b110815d98db7b2d7a (patch)
tree97bf348fcbfc56634873ce4613948a2369c9067e /discover/udev.c
parent7b793150f96a6fe6033ac1390a663b1b62be2df6 (diff)
downloadtalos-petitboot-bad9baa8794ed0c31b7f93b110815d98db7b2d7a.tar.gz
talos-petitboot-bad9baa8794ed0c31b7f93b110815d98db7b2d7a.zip
discover: populate udev device types
Now that we have device types, populate from the udev info. Signed-off-by: Jeremy Kerr <jk@ozlabs.org>
Diffstat (limited to 'discover/udev.c')
-rw-r--r--discover/udev.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/discover/udev.c b/discover/udev.c
index 309a749..d13ced7 100644
--- a/discover/udev.c
+++ b/discover/udev.c
@@ -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);
OpenPOWER on IntegriCloud