diff options
author | Samuel Mendoza-Jonas <sam@mendozajonas.com> | 2018-07-30 11:48:25 +1000 |
---|---|---|
committer | Samuel Mendoza-Jonas <sam@mendozajonas.com> | 2018-07-30 15:13:27 +1000 |
commit | 1effde766f4cfc9fbf8fa7b539bebbeca59cb691 (patch) | |
tree | 055e0a7868ef6f431ef92ce7c91eb0c20992aec7 | |
parent | 69efae0cb03a414124e7080b93b8a911821ad89f (diff) | |
download | talos-petitboot-1effde766f4cfc9fbf8fa7b539bebbeca59cb691.tar.gz talos-petitboot-1effde766f4cfc9fbf8fa7b539bebbeca59cb691.zip |
discover: Be more verbose about boot failures
Signed-off-by: Samuel Mendoza-Jonas <sam@mendozajonas.com>
(cherry picked from commit 0dca9e11c5bacd76a12b2e52a263ca7bd94b9a00)
-rw-r--r-- | discover/boot.c | 6 | ||||
-rw-r--r-- | discover/paths.c | 2 |
2 files changed, 8 insertions, 0 deletions
diff --git a/discover/boot.c b/discover/boot.c index 0da40e3..f80b409 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); diff --git a/discover/paths.c b/discover/paths.c index c5b5778..45988c1 100644 --- a/discover/paths.c +++ b/discover/paths.c @@ -116,6 +116,8 @@ static void load_url_process_exit(struct process *process) } else { result->status = LOAD_ERROR; load_url_result_cleanup_local(result); + pb_debug("Download client stdout buffer:\n%s\n", + process->stdout_buf); } if (result->status == LOAD_OK && process->stdout_data) |