From 0ec2cd6f4c4e7ee75fc08fbe778dca7a1dc21dbc Mon Sep 17 00:00:00 2001 From: Clifford Wolf Date: Tue, 19 Jul 2005 13:52:11 +0000 Subject: [PATCH] Clifford Wolf: Also do the chroot bind-mounts in debug.sh [2005071914292020510] (https://www.rocklinux.net/submaster) git-svn-id: http://www.rocklinux.org/svn/rock-linux/trunk@6241 c5f82cb5-29bc-0310-9cd0-bff59a50e3bc --- scripts/Build-Pkg | 5 +++++ 1 file changed, 5 insertions(+) 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