Re: Teminal issues in -dev

2008-10-16 Thread Dan Nicholson
On Thu, Oct 16, 2008 at 8:16 AM, Jeremy Huntwork <[EMAIL PROTECTED]> wrote: > > The real issue is that the --bind mount of /dev is unmounted as are > /proc and /sys. (BTW, this issue would also affect any attempt to use > the grub installed in chroot, since that needs the devices corresponding > to

Re: Teminal issues in -dev

2008-10-16 Thread Jeremy Huntwork
Matthew Burgess wrote: > On Thu, 16 Oct 2008 00:30:46 -0400, Jeremy Huntwork <[EMAIL PROTECTED]> wrote: > >> I don't believe it's about simply minimalism, but it's about keeping to >> the point. If it is really beneficial to many users in various >> circumstances to have such a command in the book

Re: Teminal issues in -dev

2008-10-16 Thread Matthew Burgess
On Thu, 16 Oct 2008 00:30:46 -0400, Jeremy Huntwork <[EMAIL PROTECTED]> wrote: > I don't believe it's about simply minimalism, but it's about keeping to > the point. If it is really beneficial to many users in various > circumstances to have such a command in the book, great, add it. But if > it's

Re: Teminal issues in -dev

2008-10-15 Thread Jeremy Huntwork
Bruce Dubbs wrote: > Yes. Is there something wrong with that? Changing the book is the wrong approach. Especially, changing the commands in the book is the wrong approach. There are changes in the format of the underlying XML to accomodate scripting (and therefore jhalfs) but I personally feel

Re: Teminal issues in -dev

2008-10-15 Thread Bruce Dubbs
Jeremy Huntwork wrote: > Bruce Dubbs wrote: >> mknod -m 666 $LFS/dev/tty c 5 0 >> >> If that is done in Chapter 6, then the user doesn't have to remember any >> additional lines other than the chroot line (which is difficult enough). > > Keep in mind why you want this. If you are really going thr

Re: Teminal issues in -dev

2008-10-15 Thread Jeremy Huntwork
Bruce Dubbs wrote: > mknod -m 666 $LFS/dev/tty c 5 0 > > If that is done in Chapter 6, then the user doesn't have to remember any > additional lines other than the chroot line (which is difficult enough). Keep in mind why you want this. If you are really going through the book as a user, this e

Re: Teminal issues in -dev

2008-10-15 Thread Bruce Dubbs
Trent Shea wrote: > On Wednesday 15 October 2008 19:56:44 Bruce Dubbs wrote: >> Actually the issue only comes up if the user uses jhalfs or reboots >> or umounts /dev. I'd just like to make it easier than having to >> remember an obscure command. > > > True. There is a note in 6.61. Cleaning Up,

Re: Teminal issues in -dev

2008-10-15 Thread Trent Shea
On Wednesday 15 October 2008 19:56:44 Bruce Dubbs wrote: > Actually the issue only comes up if the user uses jhalfs or reboots > or umounts /dev.  I'd just like to make it easier than having to > remember an obscure command. True. There is a note in 6.61. Cleaning Up, but the only reason I remem

Re: Teminal issues in -dev

2008-10-15 Thread Bruce Dubbs
Trent Shea wrote: > On Wednesday 15 October 2008 16:05:22 Bruce Dubbs wrote: >> Yes. `mknod -m666 /dev/tty c 5 0` makes everything work correctly. >> Should we add that to "6.2. Preparing Virtual Kernel File Systems" ? > > mount -v --bind /dev $LFS/dev seems to populate everything for me. I agr

Re: Teminal issues in -dev

2008-10-15 Thread Trent Shea
On Wednesday 15 October 2008 16:05:22 Bruce Dubbs wrote: > Yes.  `mknod -m666 /dev/tty c 5 0` makes everything work correctly. >  Should we add that to "6.2. Preparing Virtual Kernel File Systems" ? mount -v --bind /dev $LFS/dev seems to populate everything for me. Trent. -- http://linuxfromscr

Re: Teminal issues in -dev

2008-10-15 Thread Bruce Dubbs
Dan Nicholson wrote: > On Wed, Oct 15, 2008 at 3:10 PM, Bruce Dubbs <[EMAIL PROTECTED]> wrote: >> After jhalfs completed, I followed the instructions to chroot and set the >> root >> passwd. I used: >> >> /usr/sbin/chroot "$LFS" /usr/bin/env -i \ >> HOME=/root TERM=linux PS1='\u:\w\$ ' \

Re: Teminal issues in -dev

2008-10-15 Thread Ken Moffat
On Wed, Oct 15, 2008 at 03:36:11PM -0700, Dan Nicholson wrote: > > You need devices, specifically /dev/tty for passwd (see getpass(3)). > jhalfs tears down the chroot when it's done, and the only way to get > it back is to do it manually like in the book. This has come up a > bunch of times in the

Re: Teminal issues in -dev

2008-10-15 Thread Ken Moffat
On Wed, Oct 15, 2008 at 05:10:33PM -0500, Bruce Dubbs wrote: > After jhalfs completed, I followed the instructions to chroot and set the > root > passwd. I used: > > /usr/sbin/chroot "$LFS" /usr/bin/env -i \ > HOME=/root TERM=linux PS1='\u:\w\$ ' \ > PATH=/bin:/usr/bin:/sbin:/usr/

Re: Teminal issues in -dev

2008-10-15 Thread Dan Nicholson
On Wed, Oct 15, 2008 at 3:10 PM, Bruce Dubbs <[EMAIL PROTECTED]> wrote: > After jhalfs completed, I followed the instructions to chroot and set the root > passwd. I used: > > /usr/sbin/chroot "$LFS" /usr/bin/env -i \ > HOME=/root TERM=linux PS1='\u:\w\$ ' \ > PATH=/bin:/usr/bin:/sbin:/

Teminal issues in -dev

2008-10-15 Thread Bruce Dubbs
After jhalfs completed, I followed the instructions to chroot and set the root passwd. I used: /usr/sbin/chroot "$LFS" /usr/bin/env -i \ HOME=/root TERM=linux PS1='\u:\w\$ ' \ PATH=/bin:/usr/bin:/sbin:/usr/sbin \ /bin/bash --login It's been a while and I don't remember