diff --git a/scripts/Build-Pkg b/scripts/Build-Pkg index e27bcdf98..08df2c20a 100755 --- a/scripts/Build-Pkg +++ b/scripts/Build-Pkg @@ -295,6 +295,11 @@ if [ "$chroot" = 1 ] ; then cat > $builddir/debug.sh <<- EOT #!/bin/bash export ROCK_THIS_IS_CHROOT=1 + if [ ! -e $PWD/ROCK/loop/scripts ]; then + mount --bind $realbase $PWD/ROCK/loop + mount --bind $realconf $PWD/ROCK/config + mount --bind $realdown $PWD/ROCK/download + fi chroot "$xroot" /bin/bash ROCK/src.$xpkg.$id/debug_x.sh EOT chmod +x $builddir/debug.sh