[lfs-support] chroot into the temporary ...?

2013-09-24 Thread Wiky
 hi,
It reads 'That is, we chroot into the temporary mini Linux system, ..' in 
Section6.1 of LFS7.4.
but when i run 'sudo chroot /mnt/lfs',
it returns 'chroot: failed to run command `/bin/bash': No such file or 
directory'. Of course /mnt/lfs/bin/bash not exists
and then I tried 'sudo chroot /mnt/lfs/tools', it also 'chroot: failed to run 
command `/bin/bash': No such file or directory',but /mnt/lfs/tools/bin/bash 
exists.
I really have no idea with the problem,maybe I have missed something in 
Ch5?  Thanks in advance and sorry for my English.
-- 
http://linuxfromscratch.org/mailman/listinfo/lfs-support
FAQ: http://www.linuxfromscratch.org/lfs/faq.html
Unsubscribe: See the above information page


Re: [lfs-support] chroot into the temporary ...?

2013-09-24 Thread Aleksandar Kuktin
On Wed, 25 Sep 2013 08:41:37 +0800 (CST)
Wiky wii...@yeah.net wrote:

  hi,
 It reads 'That is, we chroot into the temporary mini Linux
 system, ..' in Section6.1 of LFS7.4. but when i run 'sudo
 chroot /mnt/lfs', it returns 'chroot: failed to run command
 `/bin/bash': No such file or directory'. Of course /mnt/lfs/bin/bash
 not exists and then I tried 'sudo chroot /mnt/lfs/tools', it also
 'chroot: failed to run command `/bin/bash': No such file or
 directory',but /mnt/lfs/tools/bin/bash exists. I really have no idea
 with the problem,maybe I have missed something in Ch5?  Thanks in
 advance and sorry for my English.

You didn't specify which program should chroot exec() after it chroots
itself, so it did the default: tried to execute /bin/bash. Since there
is no such program (/mnt/lfs/bin/bash in the root filesystem), it
failed.

To fix this, you should specify which program should be executed. Like
this:

chroot /mnt/lfs /tools/bin/bash

But the full command is in Chapter 6.4. so look it up there.

-- 
You don't need an AI for a robot uprising.
Humans will do just fine.


signature.asc
Description: PGP signature
-- 
http://linuxfromscratch.org/mailman/listinfo/lfs-support
FAQ: http://www.linuxfromscratch.org/lfs/faq.html
Unsubscribe: See the above information page


Re: [lfs-support] chroot into the temporary ...?

2013-09-24 Thread Wiky
I got it, Thank you.








At 2013-09-25 09:49:36,Aleksandar Kuktin akuk...@gmail.com wrote:
On Wed, 25 Sep 2013 08:41:37 +0800 (CST)
Wiky wii...@yeah.net wrote:

  hi,
 It reads 'That is, we chroot into the temporary mini Linux
 system, ..' in Section6.1 of LFS7.4. but when i run 'sudo
 chroot /mnt/lfs', it returns 'chroot: failed to run command
 `/bin/bash': No such file or directory'. Of course /mnt/lfs/bin/bash
 not exists and then I tried 'sudo chroot /mnt/lfs/tools', it also
 'chroot: failed to run command `/bin/bash': No such file or
 directory',but /mnt/lfs/tools/bin/bash exists. I really have no idea
 with the problem,maybe I have missed something in Ch5?  Thanks in
 advance and sorry for my English.

You didn't specify which program should chroot exec() after it chroots
itself, so it did the default: tried to execute /bin/bash. Since there
is no such program (/mnt/lfs/bin/bash in the root filesystem), it
failed.

To fix this, you should specify which program should be executed. Like
this:

chroot /mnt/lfs /tools/bin/bash

But the full command is in Chapter 6.4. so look it up there.

-- 
You don't need an AI for a robot uprising.
Humans will do just fine.
-- 
http://linuxfromscratch.org/mailman/listinfo/lfs-support
FAQ: http://www.linuxfromscratch.org/lfs/faq.html
Unsubscribe: See the above information page


Re: [lfs-support] chroot into the temporary ...?

2013-09-24 Thread Aleksandar Kuktin
On Wed, 25 Sep 2013 09:56:34 +0800 (CST)
Wiky  wii...@yeah.net wrote:

 I got it, Thank you.

 At 2013-09-25 09:49:36,Aleksandar Kuktin akuk...@gmail.com wrote:
 On Wed, 25 Sep 2013 08:41:37 +0800 (CST)
 Wiky wii...@yeah.net wrote:
 
   hi,
  It reads 'That is, we chroot into the temporary mini Linux
  system, ..' in Section6.1 of LFS7.4. but when i run 'sudo
  chroot /mnt/lfs', it returns 'chroot: failed to run command
  `/bin/bash': No such file or directory'. Of
  course /mnt/lfs/bin/bash not exists and then I tried 'sudo
  chroot /mnt/lfs/tools', it also 'chroot: failed to run command
  `/bin/bash': No such file or
  directory',but /mnt/lfs/tools/bin/bash exists. I really have no
  idea with the problem,maybe I have missed something in Ch5?
  Thanks in advance and sorry for my English.
 
 You didn't specify which program should chroot exec() after it
 chroots itself, so it did the default: tried to execute /bin/bash.
 Since there is no such program (/mnt/lfs/bin/bash in the root
 filesystem), it failed.
 
 To fix this, you should specify which program should be executed.
 Like this:
 
 chroot /mnt/lfs /tools/bin/bash
 
 But the full command is in Chapter 6.4. so look it up there.
 
 -- 
 You don't need an AI for a robot uprising.
 Humans will do just fine.

Don't top post.

Also, a post in the thread LFSv7.4 stuck at section 6.9.1 gave me an
idea about why you were unable to run `chroot /mnt/lfs/tools'. The bash
that lives there requests the dynamic interpreter (run-time
linker) /tools/lib/ld-whatever.so and that did not exist.

You can verify this by adding a symbolic link `tools' to /mnt/lfs/tools
which points to `..'. Like this (command run from /mnt/lfs/tools):

ln -sv .. tools

With this, you should be able to do `chroot /mnt/lfs/tools' without any
problems. Just don't execute Section 6. with that setup because you
will have A LOT of problems and a lot of thrashing. ([thinking]...or
maybe not... anyway, don't do it. not when you are building LFS for the
first time)

-- 
You don't need an AI for a robot uprising.
Humans will do just fine.


signature.asc
Description: PGP signature
-- 
http://linuxfromscratch.org/mailman/listinfo/lfs-support
FAQ: http://www.linuxfromscratch.org/lfs/faq.html
Unsubscribe: See the above information page


Re: [lfs-support] chroot into the temporary ...?

2013-09-24 Thread Ken Moffat
On Wed, Sep 25, 2013 at 08:41:37AM +0800, Wiky wrote:
  hi,
 It reads 'That is, we chroot into the temporary mini Linux system, ..' in 
 Section6.1 of LFS7.4.
 but when i run 'sudo chroot /mnt/lfs',
 Why do you think that 'sudo' is the command to run here ?  Do we
build sudo in chapter 5 (/tools) ?
 it returns 'chroot: failed to run command `/bin/bash': No such file or 
 directory'. Of course /mnt/lfs/bin/bash not exists
 and then I tried 'sudo chroot /mnt/lfs/tools', it also 'chroot: failed to run 
 command `/bin/bash': No such file or directory',but /mnt/lfs/tools/bin/bash 
 exists.
 I really have no idea with the problem,maybe I have missed something in 
 Ch5?  Thanks in advance and sorry for my English.

 Apart from using sudo instead of su, why doesn't /bin/bash exist in
/mnt/lfs ?  If you are following the book, we create the
/mnt/lfs/bin/bash symlink in section 6.6 - and we enter chroot
*after* that, not in section 6.1.  I'm sure that reading the book is
*hard* for people who don't have English as a native language, but
you seem to be making false assumptions about what the book says.

ĸen
-- 
das eine Mal als Tragödie, dieses Mal als Farce
-- 
http://linuxfromscratch.org/mailman/listinfo/lfs-support
FAQ: http://www.linuxfromscratch.org/lfs/faq.html
Unsubscribe: See the above information page