summaryrefslogtreecommitdiffstats
path: root/discover
diff options
context:
space:
mode:
authorJeremy Kerr <jk@ozlabs.org>2013-05-08 13:04:28 +0800
committerJeremy Kerr <jk@ozlabs.org>2013-05-08 13:17:28 +0800
commitd70b3460fbbcc9acb4a80e1e6fe51d564ae607aa (patch)
treec822a0d32c1fa6aec6121a962d3b0aabec94570a /discover
parent64c7065659bd939564356d688dcd24c65e02d57f (diff)
downloadtalos-petitboot-d70b3460fbbcc9acb4a80e1e6fe51d564ae607aa.tar.gz
talos-petitboot-d70b3460fbbcc9acb4a80e1e6fe51d564ae607aa.zip
discover: Don't invert option discovery order
Keep options in the order that we discovered them in; this makes testing a little easier, as the options appear in the list in the same order as the config file. Signed-off-by: Jeremy Kerr <jk@ozlabs.org>
Diffstat (limited to 'discover')
-rw-r--r--discover/device-handler.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/discover/device-handler.c b/discover/device-handler.c
index 9e4c5bb..0fc6d75 100644
--- a/discover/device-handler.c
+++ b/discover/device-handler.c
@@ -171,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);
}
OpenPOWER on IntegriCloud