#include <string.h>
#include <errno.h>
#include <mntent.h>
+#include <locale.h>
#include <sys/stat.h>
#include <sys/wait.h>
#include <sys/mount.h>
ctx = talloc_zero(handler, struct discover_context);
ctx->device = device;
+ ctx->network = handler->network;
list_init(&ctx->boot_options);
return ctx;
if (handler->pending_boot)
boot_cancel(handler->pending_boot);
+
+ platform_finalise_config();
+
handler->pending_boot = boot(handler, opt, cmd, handler->dry_run,
boot_status, handler);
handler->pending_boot_is_default = false;
status->detail = talloc_asprintf(status,
_("Received config URL %s"), url);
+ if (!handler->network) {
+ status->message = talloc_asprintf(handler,
+ _("No network configured"));
+ goto msg;
+ }
+
event = talloc(handler, struct event);
event->type = EVENT_TYPE_USER;
event->action = EVENT_ACTION_CONF;