Changeset 0719866


Ignore:
Timestamp:
06/19/2004 05:46:53 PM (20 years ago)
Author:
Manuel Canales Esparcia <manuel@…>
Branches:
10.0, 10.0-rc1, 10.1, 10.1-rc1, 11.0, 11.0-rc1, 11.0-rc2, 11.0-rc3, 11.1, 11.1-rc1, 11.2, 11.2-rc1, 11.3, 11.3-rc1, 12.0, 12.0-rc1, 12.1, 12.1-rc1, 6.0, 6.1, 6.1.1, 6.3, 6.4, 6.5, 6.6, 6.7, 6.8, 7.0, 7.1, 7.2, 7.3, 7.4, 7.5, 7.5-systemd, 7.6, 7.6-systemd, 7.7, 7.7-systemd, 7.8, 7.8-systemd, 7.9, 7.9-systemd, 8.0, 8.1, 8.2, 8.3, 8.4, 9.0, 9.1, arm, bdubbs/gcc13, ml-11.0, multilib, renodr/libudev-from-systemd, s6-init, trunk, xry111/arm64, xry111/arm64-12.0, xry111/clfs-ng, xry111/lfs-next, xry111/loongarch, xry111/loongarch-12.0, xry111/loongarch-12.1, xry111/mips64el, xry111/pip3, xry111/rust-wip-20221008, xry111/update-glibc
Children:
0816921
Parents:
8250be1
Message:

Tags corrections. Finished my firt full review
of the XML code and updated prologue/typography.xml acordongly.

git-svn-id: http://svn.linuxfromscratch.org/LFS/trunk/BOOK@3815 4aa44e1e-78dd-0310-a6d2-fbcd4c07a689

Files:
5 edited

Legend:

Unmodified
Added
Removed
  • chapter08/fstab.xml

    r8250be1 r0719866  
    1515this:</para>
    1616
    17 <screen><userinput>cat &gt; /etc/fstab &lt;&lt; "EOF"</userinput>
     17<screen><userinput>cat &gt; /etc/fstab &lt;&lt; "EOF"
    1818# Begin /etc/fstab
    1919
    2020# file system  mount-point  fs-type  options         dump  fsck-order
    2121
    22 /dev/xxx      /            fff      defaults        1     1
    23 /dev/yyy      swap         swap     pri=1           0     0
     22/dev/<replaceable>[xxx]</replaceable>      /            <replaceable>[fff]</replaceable>      defaults        1     1
     23/dev/<replaceable>[yyy]</replaceable>      swap         swap     pri=1           0     0
    2424proc          /proc        proc     defaults        0     0
    2525sysfs         /sys         sysfs    defaults        0     0
     
    2727shm           /dev/shm     tmpfs    defaults        0     0
    2828# End /etc/fstab
    29 <userinput>EOF</userinput></screen>
     29EOF</userinput></screen>
    3030
    31 <para>Of course, replace <filename>xxx</filename>, <filename>yyy</filename>
    32 and <filename>fff</filename> with the values appropriate for your system --
    33 for example <filename>hda2</filename>, <filename>hda5</filename> and
    34 <filename>reiserfs</filename>. For all the details on the six fields in this
     31<para>Of course, replace <replaceable>[xxx]</replaceable>, <replaceable>[yyy]</replaceable>
     32and <replaceable>[fff]</replaceable> with the values appropriate for your system --
     33for example <filename class="partition">hda2</filename>, <filename class="partition">hda5</filename> and
     34<systemitem class="filesystem">reiserfs</systemitem>. For all the details on the six fields in this
    3535table, see <command>man 5 fstab</command>.</para>
    3636
    37 <para>When using a reiserfs partition, the <emphasis>1 1</emphasis> at the
    38 end of the line should be replaced with <emphasis>0 0</emphasis>, as such a
     37<para>When using a reiserfs partition, the <parameter>1 1</parameter> at the
     38end of the line should be replaced with <parameter>0 0</parameter>, as such a
    3939partition does not need to be dumped or checked</para>
    4040
    41 <para>The <filename>/dev/shm</filename> mount point for tmpfs is included to
     41<para>The <filename class="directory">/dev/shm</filename> mount point for
     42<systemitem class="filesystem">tmpfs</systemitem> is included to
    4243allow enabling POSIX shared memory. Your kernel must have the required support
    4344built into it for this to work -- more about this in the next section. Please
    4445note that currently very little software actually uses POSIX shared memory.
    45 Therefore you can consider the <filename>/dev/shm</filename> mount point
     46Therefore you can consider the <filename class="directory">/dev/shm</filename> mount point
    4647optional. For more information, see
    4748<filename>Documentation/filesystems/tmpfs.txt</filename> in the kernel source
  • chapter08/grub.xml

    r8250be1 r0719866  
    3535
    3636<para>Remove the diskette and store it somewhere safe. Now we'll run the
    37 <userinput>grub</userinput> shell:</para>
     37<command>grub</command> shell:</para>
    3838
    3939<screen><userinput>grub</userinput></screen>
     
    4242of (hdn,m), where <emphasis>n</emphasis> is the hard drive number, and
    4343<emphasis>m</emphasis> the partition number, both starting from zero. This
    44 means, for instance, that partition <filename>hda1</filename> is (hd0,0) to
    45 Grub, and <filename>hdb2</filename> is (hd1,1). In contrast to Linux, Grub
     44means, for instance, that partition <filename class="partition">hda1</filename> is (hd0,0) to
     45Grub, and <filename class="partition">hdb2</filename> is (hd1,1). In contrast to Linux, Grub
    4646doesn't consider CD-ROM drives to be hard drives, so if you have a CD on
    47 <filename>hdb</filename>, for example, and a second hard drive on
    48 <filename>hdc</filename>, that second hard drive would still be (hd1).</para>
     47<filename class="partition">hdb</filename>, for example, and a second hard drive on
     48<filename class="partition">hdc</filename>, that second hard drive would still be (hd1).</para>
    4949
    5050<para>Using the above information, determine the appropriate designator for
    5151your root partition (or boot partition, if you use a separate one). For the
    5252following example, we'll assume your root (or separate boot) partition is
    53 <filename>hda4</filename>.</para>
     53<filename class="partition">hda4</filename>.</para>
    5454
    5555<para>First, tell Grub where to search for its <filename>stage{1,2}</filename>
     
    6868
    6969<para>Tell Grub to install itself into the MBR (Master Boot Record) of
    70 <filename>hda</filename>:</para>
     70<filename class="partition">hda</filename>:</para>
    7171
    7272<screen><userinput>setup (hd0)</userinput></screen>
    7373
    7474<para>If all is well, Grub will have reported finding its files in
    75 <filename>/boot/grub</filename>. That's all there is to it:</para>
     75<filename class="directory">/boot/grub</filename>. That's all there is to it:</para>
    7676
    7777<screen><userinput>quit</userinput></screen>
     
    8080boot menu:</para>
    8181
    82 <screen><userinput>cat &gt; /boot/grub/menu.lst &lt;&lt; "EOF"</userinput>
     82<screen><userinput>cat &gt; /boot/grub/menu.lst &lt;&lt; "EOF"
    8383# Begin /boot/grub/menu.lst
    8484
     
    9696root (hd0,3)
    9797kernel /boot/lfskernel-&linux-version; root=/dev/hda4
    98 <userinput>EOF</userinput></screen>
     98EOF</userinput></screen>
    9999
    100 <note><para>By default, Grub will automatically pass a <quote>mem=xxx</quote>
     100<note><para>By default, Grub will automatically pass a <parameter>mem=xxx</parameter>
    101101command line argument to the kernel. However, Grub occasionally gets the amount
    102102of memory wrong which can lead to problems in some circumstances. It's best to
    103103disable this functionality and let the kernel determine the amount of memory
    104 itself, hence the use of the <emphasis>--no-mem-option</emphasis> above.</para>
     104itself, hence the use of the <parameter>--no-mem-option</parameter> above.</para>
    105105</note>
    106106
     
    108108like this:</para>
    109109
    110 <screen><userinput>cat &gt;&gt; /boot/grub/menu.lst &lt;&lt; "EOF"</userinput>
     110<screen><userinput>cat &gt;&gt; /boot/grub/menu.lst &lt;&lt; "EOF"
    111111title Red Hat
    112112root (hd0,2)
    113113kernel /boot/kernel-2.4.20 root=/dev/hda3
    114114initrd /boot/initrd-2.4.20
    115 <userinput>EOF</userinput></screen>
     115EOF</userinput></screen>
    116116
    117117<para>Also, if you happen to dual-boot Windows, the following entry should
    118118allow booting it:</para>
    119119
    120 <screen><userinput>cat &gt;&gt; /boot/grub/menu.lst &lt;&lt; "EOF"</userinput>
     120<screen><userinput>cat &gt;&gt; /boot/grub/menu.lst &lt;&lt; "EOF"
    121121title Windows
    122122rootnoverify (hd0,0)
    123123chainloader +1
    124 <userinput>EOF</userinput></screen>
     124EOF</userinput></screen>
    125125
    126126<para>If <command>info grub</command> doesn't tell you all you want to
  • chapter08/introduction.xml

    r8250be1 r0719866  
    99
    1010<para>This chapter will make LFS bootable. This chapter deals with creating a
    11 fstab file, building a
     11<filename>fstab</filename> file, building a
    1212kernel for the new LFS system and installing the Grub bootloader
    1313so that the LFS system can be selected for booting at startup.</para>
  • chapter08/kernel.xml

    r8250be1 r0719866  
    5353<screen><userinput>make menuconfig</userinput></screen>
    5454
    55 <para><userinput>make oldconfig</userinput> may be more appropriate in some
     55<para><command>make oldconfig</command> may be more appropriate in some
    5656situations. See the <filename>README</filename> file for more
    5757information.</para>
     
    7070
    7171<para>LFS bootscripts make the assumption that you either compile
    72 both "Support for Host-side USB" and
    73 "USB device filesystem" directly into the kernel, or don't compile them at
     72both <quote>Support for Host-side USB</quote> and
     73<quote>USB device filesystem</quote> directly into the kernel, or don't compile them at
    7474all. Bootscripts will not work properly if it is a module (usbcore.ko).</para>
    7575
     
    121121
    122122<para>Kernel compilation has finished but more steps are required to complete
    123 the installation. Some files need to be copied to the <filename>/boot</filename>
     123the installation. Some files need to be copied to the <filename class="directory">/boot</filename>
    124124directory.</para>
    125125
     
    155155<para>If you are going to keep the kernel source tree around, you may want to
    156156run <userinput>chown -R 0:0</userinput> on the
    157 <filename>linux-&linux-version;</filename> directory to ensure all files are
     157<filename class="directory">linux-&linux-version;</filename> directory to ensure all files are
    158158owned by user <emphasis>root</emphasis>.</para>
    159159
     
    190190<para>define the interface to the
    191191services that the kernel provides. The headers in your system's
    192 <filename>include</filename> directory should <emphasis>always</emphasis> be
     192<filename class="directory">include</filename> directory should <emphasis>always</emphasis> be
    193193the ones against which Glibc was compiled and should therefore
    194194<emphasis>not</emphasis> be replaced when upgrading the kernel.</para>
  • prologue/typography.xml

    r8250be1 r0719866  
    1818referenced.</para></blockquote>
    1919
    20 <para><filename>install-info: unknown option
    21 `--dir-file=/mnt/lfs/usr/info/dir'</filename></para>
     20<screen><computeroutput>install-info: unknown option `--dir-file=/mnt/lfs/usr/info/dir'</computeroutput></screen>
    2221
    2322<blockquote><para>This form of text (fixed width text) is showing screen
     
    2827
    2928<blockquote><para>This form of text is used for several purposes in the
    30 book, mainly to emphasize important points, and to give examples of
    31 what to type.</para></blockquote>
     29book, mainly to emphasize important points or items.</para></blockquote>
    3230
    3331<para><ulink url="&lfs-root;"/></para>
     
    3735websites.</para></blockquote>
    3836
    39 <screen><userinput>cat &gt; $LFS/etc/group &lt;&lt; "EOF"</userinput>
     37<screen><userinput>cat &gt; $LFS/etc/group &lt;&lt; "EOF"
    4038root:x:0:
    4139bin:x:1:
    4240......
    43 <userinput>EOF</userinput>
    44 </screen>
     41EOF</userinput></screen>
    4542
    4643<blockquote><para>This type of section is used mainly when creating
    4744configuration files. The first command tells the system to create
    48 the file $LFS/etc/group from whatever is typed on the following lines until
     45the file <filename>$LFS/etc/group</filename> from whatever is typed on the following lines until
    4946the sequence EOF is encountered. Therefore, this whole section is generally
    5047typed as seen.</para></blockquote>
Note: See TracChangeset for help on using the changeset viewer.