cvs commit: LFS/BOOK/chapter09 reboot.xml

winkie at linuxfromscratch.org winkie at linuxfromscratch.org
Tue May 18 07:37:32 PDT 2004


winkie      04/05/18 08:37:32

  Modified:    BOOK/chapter01 Tag: b6_0 changelog.xml
               BOOK/chapter05 Tag: b6_0 chapter05.xml hostreqs.xml
               BOOK/chapter06 Tag: b6_0 chapter06.xml kernfs.xml
               BOOK/chapter09 Tag: b6_0 reboot.xml
  Removed:     BOOK/chapter05 Tag: b6_0 udev.xml
               BOOK/chapter06 Tag: b6_0 devices.xml
  Log:
  Instead of using Udev to create nodes, just mount --bind the host's /dev
  
  Revision  Changes    Path
  No                   revision
  
  
  No                   revision
  
  
  1.741.2.24 +4 -0      LFS/BOOK/chapter01/changelog.xml
  
  Index: changelog.xml
  ===================================================================
  RCS file: /home/cvsroot/LFS/BOOK/chapter01/changelog.xml,v
  retrieving revision 1.741.2.23
  retrieving revision 1.741.2.24
  diff -u -r1.741.2.23 -r1.741.2.24
  --- changelog.xml	18 May 2004 14:13:22 -0000	1.741.2.23
  +++ changelog.xml	18 May 2004 14:37:31 -0000	1.741.2.24
  @@ -93,6 +93,10 @@
   </itemizedlist>
   </listitem>
   
  +<listitem><para>May 18th, 2004 [winkie]: Removed Udev from Chapter 5. Instead of
  +using Udev to create devices in Chapter 6, we simply <quote>mount --bind</quote>
  +the host's /dev.</para></listitem>
  +
   <listitem><para>May 18th, 2004 [winkie]: Re-added Flex, M4 and Bison to Chapter 5.</para></listitem>
   
   <listitem><para>May 17th, 2004 [winkie]: Upgraded to Binutils 2.15. Removed Flex,
  
  
  
  No                   revision
  
  
  No                   revision
  
  
  1.60.2.3  +0 -1      LFS/BOOK/chapter05/chapter05.xml
  
  Index: chapter05.xml
  ===================================================================
  RCS file: /home/cvsroot/LFS/BOOK/chapter05/chapter05.xml,v
  retrieving revision 1.60.2.2
  retrieving revision 1.60.2.3
  diff -u -r1.60.2.2 -r1.60.2.3
  --- chapter05.xml	18 May 2004 14:13:22 -0000	1.60.2.2
  +++ chapter05.xml	18 May 2004 14:37:32 -0000	1.60.2.3
  @@ -42,7 +42,6 @@
   <xi:include xmlns:xi="http://www.w3.org/2003/XInclude" href="flex.xml"/>
   <xi:include xmlns:xi="http://www.w3.org/2003/XInclude" href="util-linux.xml"/>
   <xi:include xmlns:xi="http://www.w3.org/2003/XInclude" href="perl.xml"/>
  -<xi:include xmlns:xi="http://www.w3.org/2003/XInclude" href="udev.xml"/>
   <xi:include xmlns:xi="http://www.w3.org/2003/XInclude" href="stripping.xml"/>
   
   </chapter>
  
  
  
  1.1.2.2   +16 -13    LFS/BOOK/chapter05/hostreqs.xml
  
  Index: hostreqs.xml
  ===================================================================
  RCS file: /home/cvsroot/LFS/BOOK/chapter05/hostreqs.xml,v
  retrieving revision 1.1.2.1
  retrieving revision 1.1.2.2
  diff -u -r1.1.2.1 -r1.1.2.2
  --- hostreqs.xml	3 May 2004 22:12:44 -0000	1.1.2.1
  +++ hostreqs.xml	18 May 2004 14:37:32 -0000	1.1.2.2
  @@ -7,20 +7,23 @@
   <title>Host system requirements</title>
   <?dbhtml filename="hostreqs.html"?>
   
  -<para>Due to the experimental nature of the current book, the host must be
  -running at <emphasis>least</emphasis> a 2.6.2 kernel. The reasons for this high
  -requirement is the use of NPTL, but more importantly the use of udev. Udev
  -creates devices dynamically by reading from the sysfs file system. Only very
  -recently has support for this file system been implemented in most of the kernel
  -drivers, however. We must be sure that all the critical system devices get
  -created properly.</para>
  +<para>This version of the book uses highly advanced technologies, such as Linux
  +&linux-version;, NPTL (Native POSIX Threading Library) and Udev. The downside to
  +this is that steep requirements are placed on the host's kernel. The earliest
  +vanilla kernel that can safely be used to build this book is version 2.5.32,
  +though some vendor kernels (ie, RedHat) in the 2.4.x series also work. If your
  +host's kernel is at least 2.5.32, or you are using a kernel that is patched to
  +support NPTL, then you need not upgrade anything. However, if your kernel lacks
  +the necessary threading infrastructure to support NPTL, then you will need to
  +upgrade to the latest 2.6.x kernel.</para>
   
   <para>As for obtaining such a kernel, let's hope you distributor has provided
  -a 2.6 kernel package for you. If so, install it. If not, you'll have to compile
  -it yourself. If you're forced into a situation where you need to compile it
  -yourself, it is highly recommended that you compile your kernel in a monolithic
  -manner, as you probably don't want to go fiddling with your hosts module
  -utilities. Supposing you don't want to listen, open up the module-init-tools
  -tarball and check out the README on how to get module support for 2.6.</para>
  +a 2.6.x kernel package for you. If so, install it. If not, you'll have to
  +compile it yourself. If you're forced into a situation where you need to compile
  +it yourself, it is highly recommended that you compile your kernel in a
  +monolithic manner, as you probably don't want to go fiddling with your hosts
  +module utilities. Supposing you don't want to listen, open up the
  +module-init-tools tarball and check out the README on how to get module support
  +for 2.6.x.</para>
   
   </sect1>
  
  
  
  No                   revision
  
  
  No                   revision
  
  
  1.80.2.1  +0 -1      LFS/BOOK/chapter06/chapter06.xml
  
  Index: chapter06.xml
  ===================================================================
  RCS file: /home/cvsroot/LFS/BOOK/chapter06/chapter06.xml,v
  retrieving revision 1.80
  retrieving revision 1.80.2.1
  diff -u -r1.80 -r1.80.2.1
  --- chapter06.xml	3 May 2004 21:28:57 -0000	1.80
  +++ chapter06.xml	18 May 2004 14:37:32 -0000	1.80.2.1
  @@ -15,7 +15,6 @@
   <xi:include xmlns:xi="http://www.w3.org/2003/XInclude" href="creatingdirs.xml"/>
   <xi:include xmlns:xi="http://www.w3.org/2003/XInclude" href="createfiles.xml"/>
   <xi:include xmlns:xi="http://www.w3.org/2003/XInclude" href="pwdgroup.xml"/>
  -<xi:include xmlns:xi="http://www.w3.org/2003/XInclude" href="devices.xml"/>
   <xi:include xmlns:xi="http://www.w3.org/2003/XInclude" href="linux-libc-headers.xml"/>
   <xi:include xmlns:xi="http://www.w3.org/2003/XInclude" href="man-pages.xml"/>
   <xi:include xmlns:xi="http://www.w3.org/2003/XInclude" href="glibc.xml"/>
  
  
  
  1.1.2.2   +10 -9     LFS/BOOK/chapter06/kernfs.xml
  
  Index: kernfs.xml
  ===================================================================
  RCS file: /home/cvsroot/LFS/BOOK/chapter06/kernfs.xml,v
  retrieving revision 1.1.2.1
  retrieving revision 1.1.2.2
  diff -u -r1.1.2.1 -r1.1.2.2
  --- kernfs.xml	3 May 2004 22:12:44 -0000	1.1.2.1
  +++ kernfs.xml	18 May 2004 14:37:32 -0000	1.1.2.2
  @@ -11,21 +11,22 @@
   
   <screen><userinput>mkdir -p $LFS/{proc,sys}</userinput></screen>
   
  -<para>Now mount the file systems:</para>
  +<para>Mount the file systems:</para>
   
   <screen><userinput>mount -t proc proc $LFS/proc
   mount -t sysfs sysfs $LFS/sys</userinput></screen>
   
  +<para>Create two static nodes which get used early in bootup:</para>
  +
  +<screen><userinput>mknod -m 600 $LFS/dev/console c 5 1
  +mknod -m 666 $LFS/dev/null c 1 3</userinput></screen>
  +
  +<para>Finally, create a clone of the host's /dev directory:</para>
  +
  +<screen><userinput>mount --bind /dev $LFS/dev</userinput></screen>
  +
   <para>Remember that if for any reason you stop working on your LFS, and start
   again later, it's important to check that these file systems are mounted again
   before entering the chroot environment, otherwise problems could occur.</para>
  -
  -<para>Shortly, we'll be mounting a few more file systems from within the chroot
  -environment. To keep the host up-to-date, we'll do a <quote>fake mount</quote>
  -for each of these now:</para>
  -
  -<screen><userinput>mount -f -t ramfs ramfs $LFS/dev
  -mount -f -t tmpfs tmpfs $LFS/dev/shm
  -mount -f -t devpts -o gid=4,mode=620 devpts $LFS/dev/pts</userinput></screen>
   
   </sect1>
  
  
  
  No                   revision
  
  
  No                   revision
  
  
  1.26.2.1  +1 -3      LFS/BOOK/chapter09/reboot.xml
  
  Index: reboot.xml
  ===================================================================
  RCS file: /home/cvsroot/LFS/BOOK/chapter09/reboot.xml,v
  retrieving revision 1.26
  retrieving revision 1.26.2.1
  diff -u -r1.26 -r1.26.2.1
  --- reboot.xml	3 May 2004 21:28:58 -0000	1.26
  +++ reboot.xml	18 May 2004 14:37:32 -0000	1.26.2.1
  @@ -14,9 +14,7 @@
   
   <para>Then unmount the virtual files systems:</para>
   
  -<screen><userinput>umount $LFS/dev/pts
  -umount $LFS/dev/shm
  -umount $LFS/dev
  +<screen><userinput>umount $LFS/dev
   umount $LFS/proc
   umount $LFS/sys</userinput></screen>    
   
  
  
  



More information about the lfs-book mailing list