-# Move specified directories out of the chroot and into a "data"
-# directory that will be bind mounted on /data inside the chroot.
-move_datadirs() {
- root=$1
- data=$2
- shift 2
- pl_move_dirs $root $data /data "$@"
+ template=$build_dir/mirroring/${pl_DISTRO_NAME}/yum.repos.d/building.repo.in
+ if [ ! -f $template ] ; then
+ echo "# MyPLC/$0: cannot find template $template"
+ else
+ sed -e s,@MIRRORURL@,http://${BUILD_HOST}/mirror/, $template
+ fi