]> git.ipfire.org Git - people/mfischer/ipfire-2.x.git/commitdiff
make.sh: Forward the proxy configuration to the chroot shell
authorMichael Tremer <michael.tremer@ipfire.org>
Thu, 15 Aug 2024 15:44:31 +0000 (15:44 +0000)
committerMichael Tremer <michael.tremer@ipfire.org>
Thu, 15 Aug 2024 15:44:31 +0000 (15:44 +0000)
Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
make.sh

diff --git a/make.sh b/make.sh
index 370e616a23508e037243fd6d735cbaa683ae9c52..ab45e53946f20dd1c7753064c12b09b164c09278 100755 (executable)
--- a/make.sh
+++ b/make.sh
@@ -535,12 +535,19 @@ prepareenv() {
 }
 
 entershell() {
+       local environ=(
+               # HTTP(S) Proxy
+               "https_proxy=${https_proxy}"
+               "http_proxy=${http_proxy}"
+       )
+
        echo "Entering to a shell inside the build environment, go out with exit"
 
        local PS1="ipfire build chroot (${BUILD_ARCH}) \u:\w\$ "
 
        # Run an interactive shell
-       execute --chroot --interactive --network bash -i
+       execute --chroot --interactive --network \
+               "${environ[@]}" bash -i
 }
 
 lfsmakecommoncheck() {