r1592 - in trunk/BOOK: chapter02 chapter03 chapter05 chapter06 chapter09 prologue

robert at linuxfromscratch.org robert at linuxfromscratch.org
Sat Nov 20 15:07:47 PST 2010


Author: robert
Date: 2010-11-20 16:07:41 -0700 (Sat, 20 Nov 2010)
New Revision: 1592

Modified:
   trunk/BOOK/chapter02/mounting.xml
   trunk/BOOK/chapter03/introduction.xml
   trunk/BOOK/chapter05/changingowner.xml
   trunk/BOOK/chapter05/generalinstructions.xml
   trunk/BOOK/chapter05/introduction.xml
   trunk/BOOK/chapter05/stripping.xml
   trunk/BOOK/chapter06/chroot.xml
   trunk/BOOK/chapter06/kernfs.xml
   trunk/BOOK/chapter06/revisedchroot.xml
   trunk/BOOK/chapter06/strippingagain.xml
   trunk/BOOK/chapter09/reboot.xml
   trunk/BOOK/prologue/typography.xml
Log:
Substitute  with .

Modified: trunk/BOOK/chapter02/mounting.xml
===================================================================
--- trunk/BOOK/chapter02/mounting.xml	2010-11-16 05:34:54 UTC (rev 1591)
+++ trunk/BOOK/chapter02/mounting.xml	2010-11-20 23:07:41 UTC (rev 1592)
@@ -25,8 +25,8 @@
   <para>Next, create the mount point and mount the LFS file system by
   running:</para>
 
-<screen role="nodump"><userinput>mkdir -pv $LFS
-mount -v -t ext3 /dev/<replaceable><xxx></replaceable> $LFS</userinput></screen>
+<screen role="nodump"><userinput>mkdir -pv $HLFS
+mount -v -t ext3 /dev/<replaceable><xxx></replaceable> $HLFS</userinput></screen>
 
   <para>Replace <replaceable><xxx></replaceable> with the designation of the LFS
   partition.</para>
@@ -35,10 +35,10 @@
   class="directory">/</filename> and another for <filename
   class="directory">/usr</filename>), mount them using:</para>
 
-<screen role="nodump"><userinput>mkdir -pv $LFS
-mount -v -t ext3 /dev/<replaceable><xxx></replaceable> $LFS
-mkdir -v $LFS/usr
-mount -v -t ext3 /dev/<replaceable><yyy></replaceable> $LFS/usr</userinput></screen>
+<screen role="nodump"><userinput>mkdir -pv $HLFS
+mount -v -t ext3 /dev/<replaceable><xxx></replaceable> $HLFS
+mkdir -v $HLFS/usr
+mount -v -t ext3 /dev/<replaceable><yyy></replaceable> $HLFS/usr</userinput></screen>
 
   <para>Replace <replaceable><xxx></replaceable> and
   <replaceable><yyy></replaceable> with the appropriate partition

Modified: trunk/BOOK/chapter03/introduction.xml
===================================================================
--- trunk/BOOK/chapter03/introduction.xml	2010-11-16 05:34:54 UTC (rev 1591)
+++ trunk/BOOK/chapter03/introduction.xml	2010-11-20 23:07:41 UTC (rev 1592)
@@ -29,7 +29,7 @@
   <para>Downloaded packages and patches will need to be stored somewhere
   that is conveniently available throughout the entire build. A working
   directory is also required to unpack the sources and build them.
-  <filename class="directory">$LFS/sources</filename> can be used both
+  <filename class="directory">$HLFS/sources</filename> can be used both
   as the place to store the tarballs and patches and as a working
   directory. By using this directory, the required elements will be
   located on the LFS partition and will be available during all stages
@@ -39,7 +39,7 @@
   <systemitem class="username">root</systemitem>, before starting the download
   session:</para>
 
-<screen role="nodump"><userinput>mkdir -v $LFS/sources</userinput></screen>
+<screen role="nodump"><userinput>mkdir -v $HLFS/sources</userinput></screen>
 
   <para>Make this directory writable and sticky. <quote>Sticky</quote>
   means that even if multiple users have write permission on a
@@ -47,7 +47,7 @@
   sticky directory. The following command will enable the write and
   sticky modes:</para>
 
-<screen role="nodump"><userinput>chmod -v a+wt $LFS/sources</userinput></screen>
+<screen role="nodump"><userinput>chmod -v a+wt $HLFS/sources</userinput></screen>
 
   <para>An easy way to download all of the packages and patches is by using
   <ulink url="../wget-list">wget-list</ulink> as an input to

Modified: trunk/BOOK/chapter05/changingowner.xml
===================================================================
--- trunk/BOOK/chapter05/changingowner.xml	2010-11-16 05:34:54 UTC (rev 1591)
+++ trunk/BOOK/chapter05/changingowner.xml	2010-11-20 23:07:41 UTC (rev 1592)
@@ -14,33 +14,33 @@
     <para>The commands in the remainder of this book must be performed while
     logged in as user <systemitem class="username">root</systemitem> and no
     longer as user <systemitem class="username">lfs</systemitem>. Also, double
-    check that <envar>$LFS</envar> is set in <systemitem
+    check that <envar>$HLFS</envar> is set in <systemitem
     class="username">root</systemitem>'s environment.</para>
   </note>
 
-  <para>Currently, the <filename class="directory">$LFS/tools</filename> directory
+  <para>Currently, the <filename class="directory">$HLFS/tools</filename> directory
   is owned by the user <systemitem class="username">lfs</systemitem>, a user
   that exists only on the host system. If the <filename
-  class="directory">$LFS/tools</filename> directory is kept as is, the files are
+  class="directory">$HLFS/tools</filename> directory is kept as is, the files are
   owned by a user ID without a corresponding account. This is dangerous because
   a user account created later could get this same user ID and would own the
-  <filename class="directory">$LFS/tools</filename> directory and all the files
+  <filename class="directory">$HLFS/tools</filename> directory and all the files
   therein, thus exposing these files to possible malicious manipulation.</para>
 
   <para>To avoid this issue, you could add the <systemitem
   class="username">lfs</systemitem> user to the new LFS system later when
   creating the <filename>/etc/passwd</filename> file, taking care to assign it
   the same user and group IDs as on the host system. Better yet, change the
-  ownership of the <filename class="directory">$LFS/tools</filename> directory to
+  ownership of the <filename class="directory">$HLFS/tools</filename> directory to
   user <systemitem class="username">root</systemitem> by running the following
   command:</para>
 
-<screen><userinput>chown -R root:root $LFS/tools</userinput></screen>
+<screen><userinput>chown -R root:root $HLFS/tools</userinput></screen>
 
-  <para>Although the <filename class="directory">$LFS/tools</filename> directory
+  <para>Although the <filename class="directory">$HLFS/tools</filename> directory
   can be deleted once the LFS system has been finished, it can be retained to build
   additional LFS systems <emphasis>of the same book version</emphasis>. How best
-  to backup <filename class="directory">$LFS/tools</filename> is a matter of
+  to backup <filename class="directory">$HLFS/tools</filename> is a matter of
   personal preference.</para>
 
   <caution>

Modified: trunk/BOOK/chapter05/generalinstructions.xml
===================================================================
--- trunk/BOOK/chapter05/generalinstructions.xml	2010-11-16 05:34:54 UTC (rev 1591)
+++ trunk/BOOK/chapter05/generalinstructions.xml	2010-11-20 23:07:41 UTC (rev 1592)
@@ -46,7 +46,7 @@
     <para>Check one last time that the <envar>LFS</envar> environment variable
     is set up properly:</para>
 
-<screen role="nodump"><userinput>echo $LFS</userinput></screen>
+<screen role="nodump"><userinput>echo $HLFS</userinput></screen>
 
     <para>Make sure the output shows the path to the LFS partition's mount
     point, which is <filename class="directory">/mnt/lfs</filename>, using our

Modified: trunk/BOOK/chapter05/introduction.xml
===================================================================
--- trunk/BOOK/chapter05/introduction.xml	2010-11-16 05:34:54 UTC (rev 1591)
+++ trunk/BOOK/chapter05/introduction.xml	2010-11-20 23:07:41 UTC (rev 1592)
@@ -21,7 +21,7 @@
   toolchain to build the other essential tools.</para>
 
   <para>The files compiled in this chapter will be installed under the
-  <filename class="directory">$LFS/tools</filename> directory to keep them
+  <filename class="directory">$HLFS/tools</filename> directory to keep them
   separate from the files installed in the next chapter and the host
   production directories. Since the packages compiled here are temporary,
   we do not want them to pollute the soon-to-be LFS system.</para>

Modified: trunk/BOOK/chapter05/stripping.xml
===================================================================
--- trunk/BOOK/chapter05/stripping.xml	2010-11-16 05:34:54 UTC (rev 1591)
+++ trunk/BOOK/chapter05/stripping.xml	2010-11-20 23:07:41 UTC (rev 1592)
@@ -31,7 +31,7 @@
 <screen><userinput>rm -rf /tools/{,share}/{info,man}</userinput></screen>
 
   <para>At this point, you should have at least 850 MB of free space in
-  <envar>$LFS</envar> that can be used to build and install Glibc in the
+  <envar>$HLFS</envar> that can be used to build and install Glibc in the
   next phase. If you can build and install Glibc, you can build and install
   the rest too.</para>
 

Modified: trunk/BOOK/chapter06/chroot.xml
===================================================================
--- trunk/BOOK/chapter06/chroot.xml	2010-11-16 05:34:54 UTC (rev 1591)
+++ trunk/BOOK/chapter06/chroot.xml	2010-11-20 23:07:41 UTC (rev 1592)
@@ -15,7 +15,7 @@
   class="username">root</systemitem>, run the following command to enter the
   realm that is, at the moment, populated with only the temporary tools:</para>
 
-<screen><userinput>chroot "$LFS" /tools/bin/env -i \
+<screen><userinput>chroot "$HLFS" /tools/bin/env -i \
     HOME=/root TERM="$TERM" PS1='\u:\w\$ ' \
     PATH=/bin:/usr/bin:/sbin:/usr/sbin:/tools/bin \
     /tools/bin/bash --login +h</userinput></screen>
@@ -34,7 +34,7 @@
   <para>From this point on, there is no need to use the
   <envar>LFS</envar> variable anymore, because all work will be restricted
   to the LFS file system.  This is because the Bash shell is told that
-  <filename class="directory">$LFS</filename> is now the root
+  <filename class="directory">$HLFS</filename> is now the root
   (<filename class="directory">/</filename>) directory.</para>
 
   <para>Notice that <filename class="directory">/tools/bin</filename> comes last

Modified: trunk/BOOK/chapter06/kernfs.xml
===================================================================
--- trunk/BOOK/chapter06/kernfs.xml	2010-11-16 05:34:54 UTC (rev 1591)
+++ trunk/BOOK/chapter06/kernfs.xml	2010-11-20 23:07:41 UTC (rev 1592)
@@ -22,7 +22,7 @@
     <para>Begin by creating directories onto which the file systems will be
     mounted:</para>
 
-<screen><userinput>mkdir -v $LFS/{dev,proc,sys}</userinput></screen>
+<screen><userinput>mkdir -v $HLFS/{dev,proc,sys}</userinput></screen>
 
   <sect2>
     <title>Creating Initial Device Nodes</title>
@@ -36,8 +36,8 @@
     <parameter>init=/bin/bash</parameter>. Create the devices by running the
     following commands:</para>
 
-<screen><userinput>mknod -m 600 $LFS/dev/console c 5 1
-mknod -m 666 $LFS/dev/null c 1 3</userinput></screen>
+<screen><userinput>mknod -m 600 $HLFS/dev/console c 5 1
+mknod -m 666 $HLFS/dev/null c 1 3</userinput></screen>
 
   </sect2>
 
@@ -59,7 +59,7 @@
       create a mirror of a directory or mount point to some other location. Use
       the following command to achieve this:</para>
 
-<screen><userinput>mount -v --bind /dev $LFS/dev</userinput></screen>
+<screen><userinput>mount -v --bind /dev $HLFS/dev</userinput></screen>
 
   </sect2>
 
@@ -68,10 +68,10 @@
 
       <para>Now mount the remaining virtual kernel filesystems:</para>
 
-<screen><userinput>mount -vt devpts devpts $LFS/dev/pts
-mount -vt tmpfs shm $LFS/dev/shm
-mount -vt proc proc $LFS/proc
-mount -vt sysfs sysfs $LFS/sys</userinput></screen>
+<screen><userinput>mount -vt devpts devpts $HLFS/dev/pts
+mount -vt tmpfs shm $HLFS/dev/shm
+mount -vt proc proc $HLFS/proc
+mount -vt sysfs sysfs $HLFS/sys</userinput></screen>
 
   </sect2>
 

Modified: trunk/BOOK/chapter06/revisedchroot.xml
===================================================================
--- trunk/BOOK/chapter06/revisedchroot.xml	2010-11-16 05:34:54 UTC (rev 1591)
+++ trunk/BOOK/chapter06/revisedchroot.xml	2010-11-20 23:07:41 UTC (rev 1592)
@@ -13,7 +13,7 @@
   <para>From now on, when reentering the chroot environment after
   exiting, use the following modified chroot command:</para>
 
-<screen><userinput>chroot "$LFS" /usr/bin/env -i \
+<screen><userinput>chroot "$HLFS" /usr/bin/env -i \
     HOME=/root TERM="$TERM" PS1='\u:\w\$ ' \
     PATH=/bin:/usr/bin:/sbin:/usr/sbin \
     /bin/bash --login</userinput></screen>

Modified: trunk/BOOK/chapter06/strippingagain.xml
===================================================================
--- trunk/BOOK/chapter06/strippingagain.xml	2010-11-16 05:34:54 UTC (rev 1591)
+++ trunk/BOOK/chapter06/strippingagain.xml	2010-11-20 23:07:41 UTC (rev 1592)
@@ -32,7 +32,7 @@
 
   <para>Then reenter it with:</para>
 
-<screen role="nodump"><userinput>chroot $LFS /tools/bin/env -i \
+<screen role="nodump"><userinput>chroot $HLFS /tools/bin/env -i \
     HOME=/root TERM=$TERM PS1='\u:\w\$ ' \
     PATH=/bin:/usr/bin:/sbin:/usr/sbin \
     /tools/bin/bash --login</userinput></screen>

Modified: trunk/BOOK/chapter09/reboot.xml
===================================================================
--- trunk/BOOK/chapter09/reboot.xml	2010-11-16 05:34:54 UTC (rev 1591)
+++ trunk/BOOK/chapter09/reboot.xml	2010-11-20 23:07:41 UTC (rev 1592)
@@ -32,22 +32,22 @@
 
   <para>Then unmount the virtual file systems:</para>
 
-<screen><userinput>umount -v $LFS/dev/pts
-umount -v $LFS/dev/shm
-umount -v $LFS/dev
-umount -v $LFS/proc
-umount -v $LFS/sys</userinput></screen>
+<screen><userinput>umount -v $HLFS/dev/pts
+umount -v $HLFS/dev/shm
+umount -v $HLFS/dev
+umount -v $HLFS/proc
+umount -v $HLFS/sys</userinput></screen>
 
   <para>Unmount the LFS file system itself:</para>
 
-<screen><userinput>umount -v $LFS</userinput></screen>
+<screen><userinput>umount -v $HLFS</userinput></screen>
 
   <para>If multiple partitions were created, unmount the other
   partitions before unmounting the main one, like this:</para>
 
-<screen role="nodump"><userinput>umount -v $LFS/usr
-umount -v $LFS/home
-umount -v $LFS</userinput></screen>
+<screen role="nodump"><userinput>umount -v $HLFS/usr
+umount -v $HLFS/home
+umount -v $HLFS</userinput></screen>
 
   <para>Now, reboot the system with:</para>
 

Modified: trunk/BOOK/prologue/typography.xml
===================================================================
--- trunk/BOOK/prologue/typography.xml	2010-11-16 05:34:54 UTC (rev 1591)
+++ trunk/BOOK/prologue/typography.xml	2010-11-20 23:07:41 UTC (rev 1592)
@@ -47,14 +47,14 @@
   <para>This format is used for hyperlinks both within the LFS community and to
   external pages. It includes HOWTOs, download locations, and websites.</para>
 
-<screen role="nodump"><userinput>cat > $LFS/etc/group << "EOF"
+<screen role="nodump"><userinput>cat > $HLFS/etc/group << "EOF"
 <literal>root:x:0:
 bin:x:1:
 ......</literal>
 EOF</userinput></screen>
 
   <para>This format is used when creating configuration files. The first command
-  tells the system to create the file <filename>$LFS/etc/group</filename> from
+  tells the system to create the file <filename>$HLFS/etc/group</filename> from
   whatever is typed on the following lines until the sequence End Of File (EOF)
   is encountered. Therefore, this entire section is generally typed as
   seen.</para>




More information about the hlfs-book mailing list