From: Jorge Manuel B. S. Vicetto (jmbsvicetto) Date: Fri, 2 Nov 2012 01:48:08 +0000 (-0100) Subject: We need to specify the chroot_path to the chmod call. X-Git-Tag: catalyst-2.0.12.2~5 X-Git-Url: http://git.tremily.us/?a=commitdiff_plain;h=0a8d0b5c9fc19ccb56d054e3db53611492e0173f;p=catalyst.git We need to specify the chroot_path to the chmod call. --- diff --git a/targets/support/functions.sh b/targets/support/functions.sh index 37fa74af..80e371cc 100644 --- a/targets/support/functions.sh +++ b/targets/support/functions.sh @@ -27,10 +27,11 @@ exec_in_chroot(){ copy_to_chroot ${clst_sharedir}/targets/support/chroot-functions.sh \ ${destdir} + chroot_path=${clst_chroot_path}${subdir} + echo "Ensure the file has the executable bit set" - chmod +x ${destdir}/${file_name} + chmod +x ${chroot_path}/${destdir}/${file_name} - chroot_path=${clst_chroot_path}${subdir} echo "Running ${file_name} in chroot ${chroot_path}" ${clst_CHROOT} ${chroot_path} ${destdir}/${file_name} || exit 1