|
|
@ -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 |
|
|
|