Re: [arch-general] Executing a command of a chroot outside of the chroot

2012-12-08 Thread Rodrigo Rivas
On Sat, Dec 8, 2012 at 12:16 AM, Guus Snijders wrote: > Op 7 dec. 2012 23:46 schreef "Δημήτρης Ζέρβας" <01tto...@gmail.com> het > volgende: > > > > I think that linking won't solve my problem as I include > > /data/workbench/mnt/lib in my $LD_LIBRARY_PATH... > > In that case; isn't it enough to

Re: [arch-general] Executing a command of a chroot outside of the chroot

2012-12-07 Thread Guus Snijders
Op 7 dec. 2012 23:46 schreef "Δημήτρης Ζέρβας" <01tto...@gmail.com> het volgende: > > I think that linking won't solve my problem as I include > /data/workbench/mnt/lib in my $LD_LIBRARY_PATH... In that case; isn't it enough to include /data/workbench/mnt/lib as the first item in $LD_LIBRARY_PATH

Re: [arch-general] Executing a command of a chroot outside of the chroot

2012-12-07 Thread Δημήτρης Ζέρβας
I think that linking won't solve my problem as I include /data/workbench/mnt/lib in my $LD_LIBRARY_PATH...

Re: [arch-general] Executing a command of a chroot outside of the chroot

2012-12-07 Thread Martin Panter
On 7 December 2012 23:50, Δημήτρης Ζέρβας <01tto...@gmail.com> wrote: > yes, you're right, I skipped some useful info. > with ld-linux2.so it works!! Is there a way to automate it? e.g. > '/data/workbench/mnt/bin/bash'? Maybe can you make a symbolic link? ln -s /data/workbench/mnt/lib/ld-linux2.s

Re: [arch-general] Executing a command of a chroot outside of the chroot

2012-12-07 Thread Δημήτρης Ζέρβας
yes, you're right, I skipped some useful info. with ld-linux2.so it works!! Is there a way to automate it? e.g. '/data/workbench/mnt/bin/bash'?

Re: [arch-general] Executing a command of a chroot outside of the chroot

2012-12-07 Thread Rodrigo Rivas
On Fri, Dec 7, 2012 at 7:03 AM, Δημήτρης Ζέρβας <01tto...@gmail.com> wrote: > the main system is android and the chroot is Arch linux, so I have no ldd > nor readelf... > But the dynamic loader must exist... you can invoke it manually if only you know the name. You can get the name of the interp

Re: [arch-general] Executing a command of a chroot outside of the chroot

2012-12-06 Thread Δημήτρης Ζέρβας
the main system is android and the chroot is Arch linux, so I have no ldd nor readelf...

Re: [arch-general] Executing a command of a chroot outside of the chroot

2012-12-06 Thread Martin Panter
On 6 December 2012 15:07, Δημήτρης Ζέρβας <01tto...@gmail.com> wrote: > I have a chroot environment on /data/workbench/mnt and I want to execute a > binary which is inside the chroot environment (for example > /data/workbench/mnt/bin/bash). I added the chroot library path to > $LD_LIBRARY_PATH and

[arch-general] Executing a command of a chroot outside of the chroot

2012-12-06 Thread Δημήτρης Ζέρβας
I have a chroot environment on /data/workbench/mnt and I want to execute a binary which is inside the chroot environment (for example /data/workbench/mnt/bin/bash). I added the chroot library path to $LD_LIBRARY_PATH and I just did /data/workbench/mnt/bin/bash. I get a very strange error: No such f