UPDATE:
the quick fix for my issue was to mount the directory first before unsure ran
local unshare=()
sudo mount -o bind ${BUILD_DIR}/proc ${BUILD_DIR}/proc
# Configure a new namespace
if [ -n "${IN_NAMESPACE}" ]; then
unshare+=(
# Create a new cgroup namespace
"--cgroup"
# Create a new mount namespace
"--mount"
"--propagation=slave"
# Create a new PID namespace and fork
"--pid"
"--fork"
# Create a new time namespace
"--time"
# Create a new UTS namespace
"--uts"
# Mount /proc so that the build environment does not see
# any foreign processes.
"--mount-proc=${BUILD_DIR}/proc"
# If unshare is asked to terminate, terminate all child processes
"--kill-child"
)
fi
[root@sio9 ipfire-2.x]# ./make.sh build
Building IPFire
stage2 [ 1 ][ DONE ]
linux (6.6.47) HEADERS=1 [ 29 ][ DONE ]
man-pages (6.9.1) [ 7 ][ DONE ]
glibc (2.39) [ 1:31 ]