]> git.ipfire.org Git - people/ms/ipfire-2.x.git/commitdiff
make.sh: Forward the architecture to the namespace
authorMichael Tremer <michael.tremer@ipfire.org>
Fri, 5 Jul 2024 08:58:57 +0000 (08:58 +0000)
committerMichael Tremer <michael.tremer@ipfire.org>
Mon, 8 Jul 2024 15:39:43 +0000 (15:39 +0000)
Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
make.sh

diff --git a/make.sh b/make.sh
index fd2cc72975d2f38f62ecc9f85b16759b7896ca42..ad92416065beb684c1b8cfd6f49f7d8b1757b45c 100755 (executable)
--- a/make.sh
+++ b/make.sh
@@ -1848,11 +1848,16 @@ exec_in_namespace() {
                return 0
        fi
 
+       # Forward any configuration
+       local args=(
+               "--target=${BUILD_ARCH}"
+       )
+
        IN_NAMESPACE=1 \
        exec unshare \
                --mount \
                --propagation=private \
-               "${0}" "$@"
+               "${0}" "${args[@]}" "$@"
 }
 
 # Set BASEDIR