]> git.ozlabs.org Git - petitboot/blobdiff - discover/device-handler.c
discover: Don't invert option discovery order
[petitboot] / discover / device-handler.c
index b2922b790560fd5089b5fda3a6f15ddcb9c12e73..0fc6d75b0e64db0ce0a01773a779fd269663acfc 100644 (file)
@@ -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);
 }