Recognise storage devices on USB bus
[petitboot] / ui / ncurses / nc-menu.c
index b8f9a35e0cddcd7ac16bbd330e73104ee8a0a3e4..b42dc23e556c5f2dc85081a2a1dcfb718671e8ab 100644 (file)
@@ -253,6 +253,7 @@ struct pmenu_item *pmenu_find_device(struct pmenu *menu, struct device *dev,
        switch (dev->type) {
        case DEVICE_TYPE_OPTICAL:
        case DEVICE_TYPE_DISK:
+       case DEVICE_TYPE_USB:
                /* Find block info */
                for (i = 0; sys && i < sys->n_blockdevs; i++) {
                        bd = sys->blockdevs[i];
@@ -263,8 +264,9 @@ struct pmenu_item *pmenu_find_device(struct pmenu *menu, struct device *dev,
                }
                if (matched) {
                        snprintf(buf,sizeof(buf),"[%s: %s / %s]",
-                               dev->type == DEVICE_TYPE_DISK ?
-                                       _("Disk") : _("CD/DVD"),
+                               dev->type == DEVICE_TYPE_OPTICAL ?
+                               _("CD/DVD") :
+                               device_type_display_name(dev->type),
                                bd->name, bd->uuid);
                }
                break;