X-Git-Url: http://git.ozlabs.org/?p=petitboot;a=blobdiff_plain;f=discover%2Fboot.c;h=ba4e7208fc7cf700a86c87fad4a8b5e4f092e375;hp=da7b946fcbb2dc2628b7df892fa4b752fca81a4c;hb=e3f78333a2a16760d6a497b84329c103208e921e;hpb=ca11198f4034266b0f48b37e5871c44d1399aba6 diff --git a/discover/boot.c b/discover/boot.c index da7b946..ba4e720 100644 --- a/discover/boot.c +++ b/discover/boot.c @@ -45,6 +45,7 @@ static void __attribute__((format(__printf__, 4, 5))) update_status( va_end(ap); status.type = type; + status.backlog = false; pb_debug("boot status: [%d] %s\n", type, status.message); @@ -578,6 +579,11 @@ struct boot_task *boot(void *ctx, struct discover_boot_option *opt, dtb = opt->dtb->url; } + if (opt && opt->proxy) { + setenv("http_proxy", opt->proxy, 1); + setenv("https_proxy", opt->proxy, 1); + } + boot_task = talloc_zero(ctx, struct boot_task); boot_task->dry_run = dry_run; boot_task->status_fn = status_fn;