1 |
commit: f4427e7e7f26cd8e521f70031237f9ed043da33d |
2 |
Author: Jorge Manuel B. S. Vicetto (jmbsvicetto) <jmbsvicetto <AT> gentoo <DOT> org> |
3 |
AuthorDate: Fri Nov 2 01:17:48 2012 +0000 |
4 |
Commit: Jorge Manuel B. S. Vicetto <jmbsvicetto <AT> gentoo <DOT> org> |
5 |
CommitDate: Fri Nov 2 01:17:48 2012 +0000 |
6 |
URL: http://git.overlays.gentoo.org/gitweb/?p=proj/catalyst.git;a=commit;h=f4427e7e |
7 |
|
8 |
Make sure the files we try to execute in the chroot are marked as executable. |
9 |
|
10 |
--- |
11 |
targets/support/functions.sh | 7 ++++++- |
12 |
1 files changed, 6 insertions(+), 1 deletions(-) |
13 |
|
14 |
diff --git a/targets/support/functions.sh b/targets/support/functions.sh |
15 |
index d362ece..37fa74a 100644 |
16 |
--- a/targets/support/functions.sh |
17 |
+++ b/targets/support/functions.sh |
18 |
@@ -22,10 +22,15 @@ exec_in_chroot(){ |
19 |
local subdir=${2} |
20 |
local destdir=".${subdir}/tmp" |
21 |
|
22 |
+ echo "Copying ${file_name} to ${destdir}" |
23 |
copy_to_chroot ${1} ${destdir} |
24 |
- chroot_path=${clst_chroot_path}${subdir} |
25 |
copy_to_chroot ${clst_sharedir}/targets/support/chroot-functions.sh \ |
26 |
${destdir} |
27 |
+ |
28 |
+ echo "Ensure the file has the executable bit set" |
29 |
+ chmod +x ${destdir}/${file_name} |
30 |
+ |
31 |
+ chroot_path=${clst_chroot_path}${subdir} |
32 |
echo "Running ${file_name} in chroot ${chroot_path}" |
33 |
${clst_CHROOT} ${chroot_path} ${destdir}/${file_name} || exit 1 |