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>
pb_log("\tresolved!\n");
list_remove(&opt->list);
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,
talloc_steal(opt->device, opt);
boot_option_finalise(opt);
discover_server_notify_boot_option_add(handler->server,
pb_log("boot option %s is resolved, "
"sending to clients\n",
opt->option->id);
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,
talloc_steal(dev, opt);
boot_option_finalise(opt);
discover_server_notify_boot_option_add(handler->server,