summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorGeoff Levand <geoff@infradead.org>2013-05-21 21:27:24 +0800
committerGeoff Levand <geoff@infradead.org>2013-05-21 22:00:14 +0800
commit1435814a67d3c1a0199f84b91246b37eb8fa8b99 (patch)
treebf1f638b12afb029d4971b2938fac3335f5e64fc
parent4c223e2bce76adb831708fb557b826d731ae75ed (diff)
downloadtalos-petitboot-1435814a67d3c1a0199f84b91246b37eb8fa8b99.tar.gz
talos-petitboot-1435814a67d3c1a0199f84b91246b37eb8fa8b99.zip
discover: Send options to client in order
Send the boot options to the client in the order discovered. This change is in follow up to inverting the order that the server saves the options internally. Signed-off-by: Geoff Levand <geoff@infradead.org>
-rw-r--r--discover/device-handler.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/discover/device-handler.c b/discover/device-handler.c
index 3a68767..9b2ef3d 100644
--- a/discover/device-handler.c
+++ b/discover/device-handler.c
@@ -448,7 +448,7 @@ static void process_boot_option_queue(struct device_handler *handler)
pb_log("\tresolved!\n");
list_remove(&opt->list);
- list_add(&opt->device->boot_options, &opt->list);
+ list_add_tail(&opt->device->boot_options, &opt->list);
talloc_steal(opt->device, opt);
boot_option_finalise(opt);
discover_server_notify_boot_option_add(handler->server,
@@ -500,7 +500,7 @@ static void context_commit(struct device_handler *handler,
pb_log("boot option %s is resolved, "
"sending to clients\n",
opt->option->id);
- list_add(&dev->boot_options, &opt->list);
+ list_add_tail(&dev->boot_options, &opt->list);
talloc_steal(dev, opt);
boot_option_finalise(opt);
discover_server_notify_boot_option_add(handler->server,
OpenPOWER on IntegriCloud