Commit c18315a8 authored by Lennart Poettering's avatar Lennart Poettering
Browse files

device: fall back to device node path as description instead of kernel name

parent 2e478a46
......@@ -162,9 +162,12 @@ static int device_process_new_device(Manager *m, struct udev_device *dev, bool u
}
if ((model = udev_device_get_property_value(dev, "ID_MODEL_FROM_DATABASE")) ||
(model = udev_device_get_property_value(dev, "ID_MODEL")))
(model = udev_device_get_property_value(dev, "ID_MODEL"))) {
if ((r = unit_set_description(u, model)) < 0)
goto fail;
} else if (dn)
if ((r = unit_set_description(u, dn)) < 0)
goto fail;
unit_add_to_load_queue(u);
} else {
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment