X-Git-Url: http://git.ozlabs.org/?p=petitboot;a=blobdiff_plain;f=discover%2Fdevice-handler.c;h=0fc6d75b0e64db0ce0a01773a779fd269663acfc;hp=b2922b790560fd5089b5fda3a6f15ddcb9c12e73;hb=d70b3460fbbcc9acb4a80e1e6fe51d564ae607aa;hpb=b155a07583e33d51313b5747b961f5075e7465b2 diff --git a/discover/device-handler.c b/discover/device-handler.c index b2922b7..0fc6d75 100644 --- a/discover/device-handler.c +++ b/discover/device-handler.c @@ -156,6 +156,9 @@ static void context_commit(struct device_handler *handler, opt->source->name, opt->option->id); talloc_free(opt); } else { + pb_log("boot option %s is unresolved, " + "adding to queue\n", + opt->option->id); list_add(&handler->unresolved_boot_options, &opt->list); talloc_steal(handler, opt); @@ -168,7 +171,7 @@ void discover_context_add_boot_option(struct discover_context *ctx, struct discover_boot_option *boot_option) { boot_option->source = ctx->parser; - list_add(&ctx->boot_options, &boot_option->list); + list_add_tail(&ctx->boot_options, &boot_option->list); talloc_steal(ctx, boot_option); }