diff --git a/common/xbps-src/shutils/chroot.sh b/common/xbps-src/shutils/chroot.sh index 3e7a427794a..07e3eb6f75f 100644 --- a/common/xbps-src/shutils/chroot.sh +++ b/common/xbps-src/shutils/chroot.sh @@ -155,6 +155,9 @@ chroot_sync_repos() { chroot_handler() { local action="$1" pkg="$2" rv=0 arg= _envargs= _chargs= + if [ -z "$CHROOT_READY" ]; then + return 0 + fi # Debian uses /run/shm instead... if [ -d /run/shm ]; then mkdir -p ${XBPS_MASTERDIR}/run/shm