summaryrefslogtreecommitdiffstats
path: root/discover/boot.c
diff options
context:
space:
mode:
authorSamuel Mendoza-Jonas <sam@mendozajonas.com>2018-07-30 11:48:25 +1000
committerSamuel Mendoza-Jonas <sam@mendozajonas.com>2018-07-30 14:17:05 +1000
commit0dca9e11c5bacd76a12b2e52a263ca7bd94b9a00 (patch)
tree9fdfa32e914f1e93c0957fd8ec2ea8841591975e /discover/boot.c
parentb0c603d007174e75452c1c14402d62d305da76ab (diff)
downloadtalos-petitboot-0dca9e11c5bacd76a12b2e52a263ca7bd94b9a00.tar.gz
talos-petitboot-0dca9e11c5bacd76a12b2e52a263ca7bd94b9a00.zip
discover: Be more verbose about boot failures
Signed-off-by: Samuel Mendoza-Jonas <sam@mendozajonas.com>
Diffstat (limited to 'discover/boot.c')
-rw-r--r--discover/boot.c6
1 files changed, 6 insertions, 0 deletions
diff --git a/discover/boot.c b/discover/boot.c
index 2a0d333..04c32a1 100644
--- a/discover/boot.c
+++ b/discover/boot.c
@@ -341,6 +341,8 @@ static int check_load(struct boot_task *task, const char *name,
return 0;
}
+ pb_log("Failed to load %s from %s\n", name,
+ pb_url_to_string(result->url));
update_status(task->status_fn, task->status_arg,
STATUS_ERROR,
_("Couldn't load %s from %s"), name,
@@ -451,6 +453,8 @@ no_load:
STATUS_ERROR,
_("kexec reboot failed"));
}
+ } else {
+ pb_log("Failed to load all boot resources\n");
}
}
@@ -462,6 +466,8 @@ static int start_url_load(struct boot_task *task, struct boot_resource *res)
res->result = load_url_async(task, res->url, boot_process,
task, NULL, task->status_arg);
if (!res->result) {
+ pb_log("Error starting load for %s at %s\n",
+ res->name, pb_url_to_string(res->url));
update_status(task->status_fn, task->status_arg,
STATUS_ERROR, _("Error loading %s"),
res->name);
OpenPOWER on IntegriCloud