cannot change chroot

Frank Schafer frank.schafer at t-systems.cz
Fri Jan 21 01:40:57 PST 2005


Hi,

you probably forgot to build bash or you forgot to add the
--prefix=/tools to the "./configure" command for bash.

find /home/mylinux -name bash

won't find anything.

For the latter:

See where bash gets installed by default (./configure --help in the bash
package). This should be --prefix=/usr/local.

You will have /usr/local/bin/bash on your mother system in this case.
''ls -l /usr/local/bin/bash'' will show the date of creation you built
it.

Regards
Frank

PS: assuming you don't (like me) use this $LFS thing. ;)


On Fri, 2005-01-21 at 17:18 +0800, Bluesheet wrote:
> Dear all,
> I am a first time to use LFS to develop a new Linux system, thanks for LFS
> first, it is a good for us. thanks thanks.
> 
> how I have a problem, I following the LFS5.1 book to develop my own Linux
> system, but after I install all temp package, I have a problem under using
> "chroot", the error message is like that:
> 
> [root at localhost root]# chroot "/home/mylinux" /tools/bin/env -i HOME=/root
> TERM="$TERM" PS1='\u:\w\$ ' PATH=/bin:/usr/bin:/sbin:/usr/sbin:/tools/bin
> /tools/bin/bash --login
> [root at localhost root]# chroot "/home/mylinux" /tools/bin/env -i HOME=/root
> TERM="$TERM" PS1='\u:\w\$ ' PATH=/bin:/usr/bin:/sbin:/usr/sbin:/tools/bin
> /tools/bin/bash --login +h
> /tools/bin/env: /tools/bin/bash: No such file or directory
> [root at localhost root]#
> 
> but I change it to this, "chroot "/home/mylinux" /tools/bin/env -i
> HOME=/root TERM="$TERM" PS1='\u:\w\$ '
> PATH=/bin:/usr/bin:/sbin:/usr/sbin:/tools/bin /bin/bash --login", it still
> contain error.
> 
> So, I cannot chroot to do the next step, please give me some suggestion or
> tips about this issue. Thanks.
> 
> 




More information about the lfs-support mailing list