Hello. Sorry for stupid newbie question:

# cp /bin/sh /usr/local/bin/sh
# chroot /usr/local /bin/sh
chroot: cannot run command `/bin/sh': No such file or directory

In theory it should work, right? This is the first time I run chroot not
for rescuing a broken system (which means /dev/ and /proc/ are not
mounted in chroot jail). However I guess /dev/ and /proc/ doesn't have
to be mounted to run chroot.

I am sure this is not because the executable is dynamically linked to a
file outside of the chroot jail, because I also tried to run executables
compiled with USE=static

What could be the reason (for complaining an existing file "No such file")?

Thanks in advance. Using coreutils-6.10-r2 on ibook/ppc

Reply via email to