3 # This chroot script uses xbps-uunshare(1) with user_namespaces(7).
5 readonly MASTERDIR
="$1"
8 readonly EXTRA_ARGS
="$4"
12 if ! command -v xbps-uunshare
>/dev
/null
2>&1; then
16 if [ -z "$MASTERDIR" -o -z "$DISTDIR" ]; then
17 echo "$0 MASTERDIR/DISTDIR not set"
21 exec xbps-uunshare
$EXTRA_ARGS -b $DISTDIR:/void-packages
${HOSTDIR:+-b $HOSTDIR:/host} -- $MASTERDIR $CMD $@