make.sh: Forward the architecture to the namespace

Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
This commit is contained in:
Michael Tremer
2024-07-05 08:58:57 +00:00
parent cf4652d603
commit 2b81545bc5

View File

@@ -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