From 2884789ab49dd8ee6ff6fae877380f3dcb6355e9 Mon Sep 17 00:00:00 2001 From: Kai Lueke Date: Wed, 24 Jan 2024 11:23:01 +0100 Subject: [PATCH] subprocess: Forward proxy env for postinstall script The proxy env vars for curl can be set up for the update-engine service but so far weren't forwarded to the postinstall script. Now that we download from it, we need to forward them. Forward the env vars for curl and ue-rs download_sysext (Flatcar Stable currently uses curl, Alpha uses ue-rs). --- src/update_engine/subprocess.cc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/update_engine/subprocess.cc b/src/update_engine/subprocess.cc index a4bfe15..87409e5 100644 --- a/src/update_engine/subprocess.cc +++ b/src/update_engine/subprocess.cc @@ -88,7 +88,7 @@ void FreeArgvInError(char** argv) { // Note: Caller responsible for free()ing the returned value! // Will return NULL on failure and free any allocated memory. char** ArgPointer() { - const char* keys[] = {"LD_LIBRARY_PATH", "PATH"}; + const char* keys[] = {"LD_LIBRARY_PATH", "PATH", "ALL_PROXY", "HTTP_PROXY", "HTTPS_PROXY"}; char** ret = new char*[arraysize(keys) + 1]; int pointer = 0; for (size_t i = 0; i < arraysize(keys); i++) {