>Nothing, really. If you prefer to populate $LFS/dev with a static set
>of devices (like with MAKEDEV), that's fine. However, if you don't
>bind mount the tmpfs /dev to $LFS/dev, then all you're going to have

I was trying to avoid altogether having a tempfs /dev that I'd have to
recreate every session, until LFS is bootable that is.

>there are console and null. That's not enough to get the build done
>properly. You could do it the 6.1.1 way and create the minimum set of
>nodes in $LFS/dev by hand if you want. In that case, you wouldn't need
>$LFS/dev to be a tmpfs.

What I had in mind was just commenting out the tempfs mount to /dev and
letting the book instructions (6.8?  I'm on a way different computer
without reference to the book right now.) create what it needs on the
real /dev, there for every session.  And if there was some unexpected
restart situation, it's still there.  I hope that's OK?

>If you add "set -e" or " -e" to the end of the interpreter line, then
>the script will bomb on errors and you don't have to chain everything
>together with &&.

Yes, I forgot to add it, but I've had situations where -e didn't work as
expected, so now I do both actually.

>
>> # Prepare & enter the build environment for a session
>> if [ ! -d $LFS ] ; then
>>   mount /dev/hda2 $LFS
>> fi &&
>
>This doesn't really check if anything is mounted. 

Thanks, I was trying for a Q&D check and wasn't sure that would work.  I
actually have it in the hosts fstab, so I'll just trust that.  I expect
I'll just boot the host, login, run this "chroot" script, & continue
building the next package, so there are shouldn't be any wierd
circumstances to check for.

>fine otherwise. There's a minor issue using the chroot line depending
>on where you are in Ch. 6.  See here:

Right, this script is just for building Ch6 from the start and through
package building.  When I get near the end I'll change it.

>For that reason, you probably want to add something like this to be 
>safe.
>
>[ -f ${LFS}/etc/mtab ] || touch ${LFS}/etc/mtab

Right after building the FHS?


Paul Rogers  ([EMAIL PROTECTED])
http://www.xprt.net/~pgrogers/
http://www.geocities.com/paulgrogers/
Rogers' Second Law: "Everything you do communicates."
(I do not personally endorse any additions after this line. TANSTAAFL 
:-)

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

Reply via email to