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