On Thu, 22 Sep 2005 [EMAIL PROTECTED] wrote:

> Why doesn't this work??
> 
> # /tmp/empty/kernelversion
> 2.4
> # chroot /tmp/empty /kernelversion
> chroot: /kernelversion: No such file or directory
> 
> 
> (I get the same error on Debian, Fedora and Knoppix.)
> 
> (chroot man page says to do 'chroot <new-root> <command>'
> so what am I doing wrong???)

Since this is a shell script, it doesn't work because there's no /bin/sh for
it to run once it's inside the chroot. Remember that you have to put
*everything* you'll need inside the chroot: binaries, libraries, etc.

-Deke


-- 
[email protected]
http://www.kernel-panic.org/cgi-bin/mailman/listinfo/kplug-list

Reply via email to