xbps-src: fix uchroot chroot-style to not overwrite XBPS_CHROOT_CMD_ARGS.
This commit is contained in:
parent
6da821d3dc
commit
ba4bba2031
2 changed files with 4 additions and 10 deletions
|
@ -2,10 +2,13 @@
|
||||||
#
|
#
|
||||||
# This chroot script uses xbps-uchroot(8).
|
# This chroot script uses xbps-uchroot(8).
|
||||||
#
|
#
|
||||||
|
if [ -n "$XBPS_TEMP_MASTERDIR" ]; then
|
||||||
|
ARGS="-O"
|
||||||
|
fi
|
||||||
readonly MASTERDIR="$1"
|
readonly MASTERDIR="$1"
|
||||||
readonly DISTDIR="$2"
|
readonly DISTDIR="$2"
|
||||||
readonly HOSTDIR="$3"
|
readonly HOSTDIR="$3"
|
||||||
readonly EXTRA_ARGS="$4"
|
readonly EXTRA_ARGS="$ARGS $4"
|
||||||
readonly CMD="$5"
|
readonly CMD="$5"
|
||||||
shift 5
|
shift 5
|
||||||
|
|
||||||
|
|
9
xbps-src
9
xbps-src
|
@ -570,15 +570,6 @@ for i in REPOSITORY DESTDIR BUILDDIR SRCDISTDIR; do
|
||||||
unset val
|
unset val
|
||||||
done
|
done
|
||||||
|
|
||||||
# A temporary masterdir requires xbps-uchroot(8) and -O to use overlayfs
|
|
||||||
# on tmpfs (available with xbps-0.45).
|
|
||||||
if [ -z "$IN_CHROOT" -a -n "$XBPS_TEMP_MASTERDIR" ]; then
|
|
||||||
if [ "$XBPS_CHROOT_CMD" != "uchroot" ]; then
|
|
||||||
echo "ERROR: -t requires XBPS_CHROOT_CMD=uchroot, exiting..."
|
|
||||||
exit 1
|
|
||||||
fi
|
|
||||||
export XBPS_CHROOT_CMD_ARGS="-O"
|
|
||||||
fi
|
|
||||||
#
|
#
|
||||||
# Sanitize PATH.
|
# Sanitize PATH.
|
||||||
#
|
#
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue