[elbe-devel] [PATCH 02/10] rfs: correctly replace LOCALMACHINE with 10.0.2.2

Bastian Germann bage at linutronix.de
Fri May 7 10:15:06 CEST 2021


Am 06.05.21 um 14:55 schrieb Torben Hohn:
> the debootstrap code always gets executed in initvm.
> 
> The correct replacement for LOCALMACHINE is 10.0.2.2 in this case.
> 
> Signed-off-by: Torben Hohn <torben.hohn at linutronix.de>

Reviewed-by: Bastian Germann <bage at linutronix.de>

> ---
>   elbepack/rfs.py | 2 +-
>   1 file changed, 1 insertion(+), 1 deletion(-)
> 
> diff --git a/elbepack/rfs.py b/elbepack/rfs.py
> index d8627deff..c4d44d4e0 100644
> --- a/elbepack/rfs.py
> +++ b/elbepack/rfs.py
> @@ -164,7 +164,7 @@ class BuildEnv:
>           if self.xml.prj.has("mirror/primary_proxy"):
>               os.environ["no_proxy"] = "10.0.2.2,localhost,127.0.0.1"
>               proxy = self.xml.prj.text("mirror/primary_proxy")
> -            proxy = proxy.strip().replace("LOCALMACHINE", "localhost")
> +            proxy = proxy.strip().replace("LOCALMACHINE", "10.0.2.2")
>               os.environ["http_proxy"] = proxy
>               os.environ["https_proxy"] = proxy
>           else:
> 


More information about the elbe-devel mailing list