unsigned int i;
device_handler_cancel_default(handler);
+ /* Cancel any pending non-default boot */
+ if (handler->pending_boot) {
+ boot_cancel(handler->pending_boot);
+ handler->pending_boot = NULL;
+ handler->pending_boot_is_default = false;
+ }
+
+ /* Cancel any remaining async jobs */
+ process_stop_async_all();
/* free unresolved boot options */
list_for_each_entry_safe(&handler->unresolved_boot_options,
status.type = type;
status.message = talloc_vasprintf(handler, fmt, ap);
+ status.backlog = false;
device_handler_status(handler, &status);
status.type = STATUS_INFO;
status.message = talloc_asprintf(handler,
_("Booting in %d sec: %s"), sec, opt->option->name);
+ status.backlog = false;
device_handler_status(handler, &status);
_("Processing new %s device"),
device_type_display_name(dev->device->type));
- process_boot_option_queue(handler);
-
/* create our context */
ctx = device_handler_discover_context_create(handler, dev);
/* add discovered stuff to the handler */
device_handler_discover_context_commit(handler, ctx);
+ process_boot_option_queue(handler);
out:
talloc_unlink(handler, ctx);