summaryrefslogtreecommitdiffstats
path: root/discover/device-handler.c
diff options
context:
space:
mode:
Diffstat (limited to 'discover/device-handler.c')
-rw-r--r--discover/device-handler.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/discover/device-handler.c b/discover/device-handler.c
index a271390..b083af4 100644
--- a/discover/device-handler.c
+++ b/discover/device-handler.c
@@ -372,7 +372,8 @@ static int default_timeout(void *arg)
static bool priority_match(struct boot_priority *prio,
struct discover_boot_option *opt)
{
- return prio->type == opt->device->device->type;
+ return prio->type == opt->device->device->type ||
+ prio->type == DEVICE_TYPE_ANY;
}
static int default_option_priority(struct discover_boot_option *opt)
OpenPOWER on IntegriCloud