Init, adding corrade,magnum,magnum-plugins,magnum-integration,magnum-extras, and magnum-examples 2025.47_1
This commit is contained in:
31
common/chroot-style/bwrap.sh
Executable file
31
common/chroot-style/bwrap.sh
Executable file
@@ -0,0 +1,31 @@
|
||||
#!/bin/sh
|
||||
#
|
||||
# This chroot script uses bubblewrap (see https://github.com/containers/bubblewrap)
|
||||
#
|
||||
set -e
|
||||
readonly MASTERDIR="$1"
|
||||
readonly DISTDIR="$2"
|
||||
readonly HOSTDIR="$3"
|
||||
readonly EXTRA_ARGS="$4"
|
||||
shift 4
|
||||
|
||||
if ! command -v bwrap >/dev/null 2>&1; then
|
||||
exit 1
|
||||
fi
|
||||
|
||||
if [ -z "$MASTERDIR" -o -z "$DISTDIR" ]; then
|
||||
echo "$0 MASTERDIR/DISTDIR not set"
|
||||
exit 1
|
||||
fi
|
||||
|
||||
if [ -z "$XBPS_TEMP_MASTERDIR" ]; then
|
||||
exec bwrap --bind "$MASTERDIR" / \
|
||||
--ro-bind "$DISTDIR" /void-packages \
|
||||
--dev /dev --tmpfs /tmp --proc /proc \
|
||||
${HOSTDIR:+--bind "$HOSTDIR" /host} ${EXTRA_ARGS} "$@"
|
||||
else
|
||||
exec bwrap --overlay-src "$MASTERDIR" --tmp-overlay / \
|
||||
--ro-bind "$DISTDIR" /void-packages \
|
||||
--dev /dev --tmpfs /tmp --proc /proc \
|
||||
${HOSTDIR:+--bind "$HOSTDIR" /host} ${EXTRA_ARGS} "$@"
|
||||
fi
|
||||
Reference in New Issue
Block a user