]> git.ozlabs.org Git - petitboot/blobdiff - discover/paths.c
discover/devmapper: Retry dm-device remove if busy
[petitboot] / discover / paths.c
index c5b577823746f1c7cab1cc02f176baf494782ff5..c0e2b0638a2e59f8c1d84616620f0ae167741842 100644 (file)
@@ -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)
@@ -182,8 +184,10 @@ static int busybox_progress_cb(void *arg)
                                }
        }
 
-       if (rc != 3)
+       if (rc != 3) {
                percentage = size = 0;
+               suffix = ' ';
+       }
 
        device_handler_status_download(handler, procinfo,
                        percentage, size, suffix);