From 0a8d0b5c9fc19ccb56d054e3db53611492e0173f Mon Sep 17 00:00:00 2001 From: "Jorge Manuel B. S. Vicetto (jmbsvicetto)" Date: Fri, 2 Nov 2012 00:48:08 -0100 Subject: [PATCH] We need to specify the chroot_path to the chmod call. --- targets/support/functions.sh | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) 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 -- 2.26.2