Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

Support chroot builds.

  • Loading branch information...
commit 6504bf7ef39b2a7a91774ea9a71d2ca9ceb98043 1 parent 8ab0800
@jperkin jperkin authored
View
6 pkgtools/pbulk/files/pbulk/scripts/build-client-start
@@ -12,5 +12,9 @@ if [ "${config_version}" != "@PBULK_CONFIG_VERSION@" ]; then
fi
for client in ${build_clients}; do
- ssh $client "PBULK_CONF=${PBULK_CONF} ${pbuild} -c ${master_port_build} -b ${pbuild_script}" &
+ if [ -n "${chroot_dir}" -a -n "${chroot_cmd}" ]; then
+ ssh $client "${chroot_cmd} ${chroot_dir}; PBULK_CONF=${PBULK_CONF} /usr/sbin/chroot /home/chroots/${chroot_dir} /bin/sh -c \"${pbuild} -c ${master_port_build} -b ${pbuild_script}\"" &
+ else
+ ssh $client "PBULK_CONF=${PBULK_CONF} ${pbuild} -c ${master_port_build} -b ${pbuild_script}" &
+ fi
done
View
6 pkgtools/pbulk/files/pbulk/scripts/scan-client-start
@@ -12,5 +12,9 @@ if [ "${config_version}" != "@PBULK_CONFIG_VERSION@" ]; then
fi
for client in ${scan_clients}; do
- ssh $client "PBULK_CONF=${PBULK_CONF} ${pscan_prepare} && ${pscan} -c ${master_port_scan} -M ${make} ${pkgsrc}" &
+ if [ -n "${chroot_dir}" -a -n "${chroot_cmd}" ]; then
+ ssh $client "${chroot_cmd} ${chroot_dir}; PBULK_CONF=${PBULK_CONF} /usr/sbin/chroot /home/chroots/${chroot_dir} /bin/sh -c \"${pscan_prepare} && ${pscan} -c ${master_port_scan} -M ${make} ${pkgsrc}\"" &
+ else
+ ssh $client "PBULK_CONF=${PBULK_CONF}; export PBULK_CONF; ${pscan_prepare} && ${pscan} -c ${master_port_scan} -M ${make} ${pkgsrc}" &
+ fi
done
Please sign in to comment.
Something went wrong with that request. Please try again.