mirror of
https://git.linuxfromscratch.org/lfs.git
synced 2025-07-20 11:15:06 +01:00
Remove spaces at end o lines - chapter02
This commit is contained in:
parent
5e0c67df78
commit
a04b192f50
@ -52,17 +52,17 @@
|
|||||||
<envar>LFS</envar> variable needs to be bash to ensure that the
|
<envar>LFS</envar> variable needs to be bash to ensure that the
|
||||||
<filename>/root/.bash_profile</filename> file is incorporated as a part of
|
<filename>/root/.bash_profile</filename> file is incorporated as a part of
|
||||||
the login process.</para>
|
the login process.</para>
|
||||||
|
|
||||||
<para>Another consideration is the method that is used to log into the
|
<para>Another consideration is the method that is used to log into the
|
||||||
host system. If logging in through a graphical display manager, the
|
host system. If logging in through a graphical display manager, the
|
||||||
user's <filename>.bash_profile</filename> is not normally used when
|
user's <filename>.bash_profile</filename> is not normally used when
|
||||||
a virtual terminal is started. In this case, add the export command to
|
a virtual terminal is started. In this case, add the export command to
|
||||||
the <filename>.bashrc</filename> file for the user and
|
the <filename>.bashrc</filename> file for the user and
|
||||||
<systemitem class="username">root</systemitem>. In addition,
|
<systemitem class="username">root</systemitem>. In addition,
|
||||||
some distributions have instructions to not run the <filename>.bashrc</filename>
|
some distributions have instructions to not run the <filename>.bashrc</filename>
|
||||||
instructions in a non-interactive bash invocation. Be sure to add the
|
instructions in a non-interactive bash invocation. Be sure to add the
|
||||||
export command before the test for non-interactive use.</para>
|
export command before the test for non-interactive use.</para>
|
||||||
|
|
||||||
</note>
|
</note>
|
||||||
|
|
||||||
</sect1>
|
</sect1>
|
||||||
|
@ -11,9 +11,9 @@
|
|||||||
<title>Creating a File System on the Partition</title>
|
<title>Creating a File System on the Partition</title>
|
||||||
|
|
||||||
<para>Now that a blank partition has been set up, the file system can be
|
<para>Now that a blank partition has been set up, the file system can be
|
||||||
created. LFS can use any file system recognized by the Linux kernel, but the
|
created. LFS can use any file system recognized by the Linux kernel, but the
|
||||||
most common types are ext3 and ext4. The choice of file system can be
|
most common types are ext3 and ext4. The choice of file system can be
|
||||||
complex and depends on the characteristics of the files and the size of
|
complex and depends on the characteristics of the files and the size of
|
||||||
the partition. For example:</para>
|
the partition. For example:</para>
|
||||||
|
|
||||||
<variablelist>
|
<variablelist>
|
||||||
@ -26,7 +26,7 @@
|
|||||||
<varlistentry>
|
<varlistentry>
|
||||||
<term>ext3</term>
|
<term>ext3</term>
|
||||||
<listitem><para>is an upgrade to ext2 that includes a journal
|
<listitem><para>is an upgrade to ext2 that includes a journal
|
||||||
to help recover the partition's status in the case of an unclean
|
to help recover the partition's status in the case of an unclean
|
||||||
shutdown. It is commonly used as a general purpose file system.
|
shutdown. It is commonly used as a general purpose file system.
|
||||||
</para>
|
</para>
|
||||||
</listitem>
|
</listitem>
|
||||||
|
@ -37,7 +37,7 @@
|
|||||||
<para>Start a disk partitioning program such as <command>cfdisk</command>
|
<para>Start a disk partitioning program such as <command>cfdisk</command>
|
||||||
or <command>fdisk</command> with a command line option naming the hard
|
or <command>fdisk</command> with a command line option naming the hard
|
||||||
disk on which the new partition will be created—for example
|
disk on which the new partition will be created—for example
|
||||||
<filename class="devicefile">/dev/sda</filename> for the primary
|
<filename class="devicefile">/dev/sda</filename> for the primary
|
||||||
disk drive. Create a Linux native partition and a
|
disk drive. Create a Linux native partition and a
|
||||||
<systemitem class="filesystem">swap</systemitem> partition, if needed. Please
|
<systemitem class="filesystem">swap</systemitem> partition, if needed. Please
|
||||||
refer to <filename>cfdisk(8)</filename> or <filename>fdisk(8)</filename> if
|
refer to <filename>cfdisk(8)</filename> or <filename>fdisk(8)</filename> if
|
||||||
@ -88,7 +88,7 @@
|
|||||||
swapping.</para>
|
swapping.</para>
|
||||||
|
|
||||||
<para>If you want to use the hibernation feature (suspend-to-disk) of Linux,
|
<para>If you want to use the hibernation feature (suspend-to-disk) of Linux,
|
||||||
it writes out the contents of RAM to the swap partition before turning off
|
it writes out the contents of RAM to the swap partition before turning off
|
||||||
the machine. In this case the size of the swap partition should be at
|
the machine. In this case the size of the swap partition should be at
|
||||||
least as large as the system's installed RAM.</para>
|
least as large as the system's installed RAM.</para>
|
||||||
|
|
||||||
@ -114,8 +114,8 @@
|
|||||||
<command>fdisk</command> or have a code of <emphasis>EF02</emphasis> if
|
<command>fdisk</command> or have a code of <emphasis>EF02</emphasis> if
|
||||||
using <command>gdisk</command>.</para>
|
using <command>gdisk</command>.</para>
|
||||||
|
|
||||||
<note><para>The Grub Bios partition must be on the drive that the BIOS
|
<note><para>The Grub Bios partition must be on the drive that the BIOS
|
||||||
uses to boot the system. This is not necessarily the same drive where the
|
uses to boot the system. This is not necessarily the same drive where the
|
||||||
LFS root partition is located. Disks on a system may use different
|
LFS root partition is located. Disks on a system may use different
|
||||||
partition table types. The requirement for this partition depends
|
partition table types. The requirement for this partition depends
|
||||||
only on the partition table type of the boot disk.</para></note>
|
only on the partition table type of the boot disk.</para></note>
|
||||||
|
@ -150,8 +150,8 @@
|
|||||||
</important>
|
</important>
|
||||||
|
|
||||||
<!-- Use an empty sect2 element to prevent a pdf warning. -->
|
<!-- Use an empty sect2 element to prevent a pdf warning. -->
|
||||||
<bridgehead renderas="sect2"
|
<bridgehead renderas="sect2"
|
||||||
id="version-check"
|
id="version-check"
|
||||||
xreflabel="Host System Requirements">
|
xreflabel="Host System Requirements">
|
||||||
</bridgehead>
|
</bridgehead>
|
||||||
<!--<title> </title>-->
|
<!--<title> </title>-->
|
||||||
@ -177,7 +177,7 @@ if [ -h /usr/bin/yacc ]; then
|
|||||||
elif [ -x /usr/bin/yacc ]; then
|
elif [ -x /usr/bin/yacc ]; then
|
||||||
echo yacc is `/usr/bin/yacc --version | head -n1`
|
echo yacc is `/usr/bin/yacc --version | head -n1`
|
||||||
else
|
else
|
||||||
echo "yacc not found"
|
echo "yacc not found"
|
||||||
fi
|
fi
|
||||||
|
|
||||||
bzip2 --version 2>&1 < /dev/null | head -n1 | cut -d" " -f1,6-
|
bzip2 --version 2>&1 < /dev/null | head -n1 | cut -d" " -f1,6-
|
||||||
@ -190,8 +190,8 @@ if [ -h /usr/bin/awk ]; then
|
|||||||
echo "/usr/bin/awk -> `readlink -f /usr/bin/awk`";
|
echo "/usr/bin/awk -> `readlink -f /usr/bin/awk`";
|
||||||
elif [ -x /usr/bin/awk ]; then
|
elif [ -x /usr/bin/awk ]; then
|
||||||
echo awk is `/usr/bin/awk --version | head -n1`
|
echo awk is `/usr/bin/awk --version | head -n1`
|
||||||
else
|
else
|
||||||
echo "awk not found"
|
echo "awk not found"
|
||||||
fi
|
fi
|
||||||
|
|
||||||
gcc --version | head -n1
|
gcc --version | head -n1
|
||||||
|
@ -11,8 +11,8 @@
|
|||||||
<title>Introduction</title>
|
<title>Introduction</title>
|
||||||
|
|
||||||
<para>In this chapter, the host tools needed for building LFS
|
<para>In this chapter, the host tools needed for building LFS
|
||||||
are checked and, if necessary, installed. Then a partition which will
|
are checked and, if necessary, installed. Then a partition which will
|
||||||
host the LFS system is prepared. We will create the partition
|
host the LFS system is prepared. We will create the partition
|
||||||
itself, create a file system on it, and mount it.</para>
|
itself, create a file system on it, and mount it.</para>
|
||||||
|
|
||||||
</sect1>
|
</sect1>
|
||||||
|
@ -47,8 +47,8 @@ mount -v -t ext4 /dev/<replaceable><yyy></replaceable> $LFS/home</userinpu
|
|||||||
|
|
||||||
<warning><para>The above instructions assume that you will not be restarting
|
<warning><para>The above instructions assume that you will not be restarting
|
||||||
your computer throughout the LFS process. If you shut down your system,
|
your computer throughout the LFS process. If you shut down your system,
|
||||||
you will either need to remount the LFS partition each time you restart
|
you will either need to remount the LFS partition each time you restart
|
||||||
the build process or modify your host system's /etc/fstab file to automatically
|
the build process or modify your host system's /etc/fstab file to automatically
|
||||||
remount it upon boot. For example:
|
remount it upon boot. For example:
|
||||||
|
|
||||||
<screen role="nodump">/dev/<replaceable><xxx></replaceable> /mnt/lfs ext4 defaults 1 1</screen>
|
<screen role="nodump">/dev/<replaceable><xxx></replaceable> /mnt/lfs ext4 defaults 1 1</screen>
|
||||||
|
@ -22,7 +22,7 @@
|
|||||||
|
|
||||||
<para>These chapters are accomplished on the host system. When
|
<para>These chapters are accomplished on the host system. When
|
||||||
restarting, be careful of the following:</para>
|
restarting, be careful of the following:</para>
|
||||||
|
|
||||||
<itemizedlist>
|
<itemizedlist>
|
||||||
<listitem>
|
<listitem>
|
||||||
<para>Procedures done as the
|
<para>Procedures done as the
|
||||||
@ -32,7 +32,7 @@
|
|||||||
</listitem>
|
</listitem>
|
||||||
</itemizedlist>
|
</itemizedlist>
|
||||||
</sect2>
|
</sect2>
|
||||||
|
|
||||||
<sect2>
|
<sect2>
|
||||||
<title>Chapter 5–6</title>
|
<title>Chapter 5–6</title>
|
||||||
|
|
||||||
@ -85,8 +85,8 @@
|
|||||||
<para> The virtual file systems must be mounted. This can be done
|
<para> The virtual file systems must be mounted. This can be done
|
||||||
before or after entering chroot by changing to a host virtual terminal
|
before or after entering chroot by changing to a host virtual terminal
|
||||||
and, as <systemitem class="username">root</systemitem>, running the
|
and, as <systemitem class="username">root</systemitem>, running the
|
||||||
commands in
|
commands in
|
||||||
<xref linkend='ch-tools-bindmount'/> and
|
<xref linkend='ch-tools-bindmount'/> and
|
||||||
<xref linkend='ch-tools-kernfsmount'/>.</para>
|
<xref linkend='ch-tools-kernfsmount'/>.</para>
|
||||||
</listitem>
|
</listitem>
|
||||||
</itemizedlist>
|
</itemizedlist>
|
||||||
|
Loading…
Reference in New Issue
Block a user