Bryan Kadzban wrote: > -----BEGIN PGP SIGNED MESSAGE----- > Hash: RIPEMD160 > > Thomas Pegg wrote: >> From what I remember it was so we could mount /dev/pts and /dev/shm >> inside of the chroot, but that's unnecessary now with the bind mount >> of the host's /dev. > > The bind-mount of /dev isn't what makes it unnecessary. That's why > section 6.2.3 still exists -- we still have to mount devpts separately. > And we use the newly-built mount for this since it exists in /tools/bin, > and /tools/bin is at the start of $PATH. (Or at least, I think it > should still be first.)
Actually were using the host's mount at that point unless your adding /tools/bin to the root user path (which is not in the book I might add), since su'ing to root even from the lfs user the path does not carry over, /tools/bin is lost. Here's results from a little test I just did: [EMAIL PROTECTED]:~$ export PATH=/tools/bin:$PATH [EMAIL PROTECTED]:~$ echo $PATH /tools/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games [EMAIL PROTECTED]:~$ type -p mount /tools/bin/mount [EMAIL PROTECTED]:~$ su root Password: su: Authentication failure Sorry. [EMAIL PROTECTED]:~$ su root Password: [EMAIL PROTECTED]:/home/tomp# echo $PATH /usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games [EMAIL PROTECTED]:/home/tomp# type -p mount /bin/mount [EMAIL PROTECTED]:/home/tomp# exit exit [EMAIL PROTECTED]:~$ Thomas -- http://linuxfromscratch.org/mailman/listinfo/lfs-dev FAQ: http://www.linuxfromscratch.org/faq/ Unsubscribe: See the above information page