mirror of
https://git.linuxfromscratch.org/lfs.git
synced 2025-07-09 13:59:51 +01:00
Added nodump attributes.
git-svn-id: http://svn.linuxfromscratch.org/LFS/branches/6.1.1/BOOK@7021 4aa44e1e-78dd-0310-a6d2-fbcd4c07a689
This commit is contained in:
parent
e9f3e85324
commit
1ec69ac57c
@ -18,7 +18,7 @@ condition="pdf">&blfs-root;view/svn/ postlfs/filesystems.html</phrase></ulink>.<
|
||||
|
||||
<para>To create an ext2 file system on the LFS partition, run the following:</para>
|
||||
|
||||
<screen><userinput>mke2fs /dev/<replaceable>[xxx]</replaceable></userinput></screen>
|
||||
<screen role="nodump"><userinput>mke2fs /dev/<replaceable>[xxx]</replaceable></userinput></screen>
|
||||
|
||||
<para>Replace <replaceable>[xxx]</replaceable> with the name of the LFS
|
||||
partition (<filename class="devicefile">hda5</filename> in our previous example).</para>
|
||||
@ -30,7 +30,7 @@ e2fsprogs; you will get an error similar to <quote>unsupported filesystem
|
||||
features, upgrade your e2fsprogs</quote>. To check if your host system
|
||||
uses custom enhancements, run the following command:</para>
|
||||
|
||||
<screen><userinput>debugfs -R feature /dev/<replaceable>[xxx]</replaceable></userinput></screen>
|
||||
<screen role="nodump"><userinput>debugfs -R feature /dev/<replaceable>[xxx]</replaceable></userinput></screen>
|
||||
|
||||
<para>If the output contains features other than: dir_index; filetype;
|
||||
large_file; resize_inode or sparse_super then your host system may have custom
|
||||
@ -38,7 +38,7 @@ enhancements. In that case, to avoid later problems, you should compile the
|
||||
stock e2fsprogs package and use the resulting binaries to re-create the
|
||||
filesystem on your LFS partition:</para>
|
||||
|
||||
<screen><userinput>cd /tmp
|
||||
<screen role="nodump"><userinput>cd /tmp
|
||||
tar xjf /path/to/sources/e2fsprogs-&e2fsprogs-version;.tar.bz2
|
||||
cd e2fsprogs-&e2fsprogs-version;
|
||||
mkdir build
|
||||
@ -54,7 +54,7 @@ rm -rf e2fsprogs-&e2fsprogs-version;</userinput></screen>
|
||||
issuing the command below. If you are using an existing swap partition, there is
|
||||
no need to format it.</para>
|
||||
|
||||
<screen><userinput>mkswap /dev/<replaceable>[yyy]</replaceable></userinput></screen>
|
||||
<screen role="nodump"><userinput>mkswap /dev/<replaceable>[yyy]</replaceable></userinput></screen>
|
||||
|
||||
<para>Replace <replaceable>[yyy]</replaceable> with the name of the swap
|
||||
partition.</para>
|
||||
|
@ -17,12 +17,12 @@ to you.</para>
|
||||
<para>Choose a mount point and assign it to the <envar>LFS</envar>
|
||||
environment variable by running:</para>
|
||||
|
||||
<screen><userinput>export LFS=/mnt/lfs</userinput></screen>
|
||||
<screen role="nodump"><userinput>export LFS=/mnt/lfs</userinput></screen>
|
||||
|
||||
<para>Next, create the mount point and mount the LFS file system by
|
||||
running:</para>
|
||||
|
||||
<screen><userinput>mkdir -p $LFS
|
||||
<screen role="nodump"><userinput>mkdir -p $LFS
|
||||
mount /dev/<replaceable>[xxx]</replaceable> $LFS</userinput></screen>
|
||||
|
||||
<para>Replace <replaceable>[xxx]</replaceable> with the designation of the LFS
|
||||
@ -32,7 +32,7 @@ partition.</para>
|
||||
class="directory">/</filename> and another for <filename
|
||||
class="directory">/usr</filename>), mount them using:</para>
|
||||
|
||||
<screen><userinput>mkdir -p $LFS
|
||||
<screen role="nodump"><userinput>mkdir -p $LFS
|
||||
mount /dev/<replaceable>[xxx]</replaceable> $LFS
|
||||
mkdir $LFS/usr
|
||||
mount /dev/<replaceable>[yyy]</replaceable> $LFS/usr</userinput></screen>
|
||||
|
@ -36,7 +36,7 @@ of the building process.</para>
|
||||
<emphasis>root</emphasis>, the following command before starting the
|
||||
download session:</para>
|
||||
|
||||
<screen><userinput>mkdir $LFS/sources</userinput></screen>
|
||||
<screen role="nodump"><userinput>mkdir $LFS/sources</userinput></screen>
|
||||
|
||||
<para>Make this directory writable and sticky. <quote>Sticky</quote>
|
||||
means that even if multiple users have write permission on a
|
||||
@ -44,7 +44,7 @@ directory, only the owner of a file can delete the file within a
|
||||
sticky directory. The following command will enable the write and
|
||||
sticky modes:</para>
|
||||
|
||||
<screen><userinput>chmod a+wt $LFS/sources</userinput></screen>
|
||||
<screen role="nodump"><userinput>chmod a+wt $LFS/sources</userinput></screen>
|
||||
|
||||
</sect1>
|
||||
|
||||
|
@ -12,14 +12,14 @@ be used several times. It is paramount that this variable is always defined.
|
||||
It should be set to the mount point chosen for the LFS partition.
|
||||
Check that the <envar>LFS</envar> variable is set up properly with:</para>
|
||||
|
||||
<screen><userinput>echo $LFS</userinput></screen>
|
||||
<screen role="nodump"><userinput>echo $LFS</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> if the
|
||||
provided example was followed. If the output is incorrect, the
|
||||
variable can be set with:</para>
|
||||
|
||||
<screen><userinput>export LFS=/mnt/lfs</userinput></screen>
|
||||
<screen role="nodump"><userinput>export LFS=/mnt/lfs</userinput></screen>
|
||||
|
||||
<para>Having this variable set is beneficial in that commands such as
|
||||
<command>mkdir $LFS/tools</command> can be typed literally. The shell
|
||||
|
@ -62,7 +62,7 @@ logged in as <emphasis>root</emphasis>, which does not require the
|
||||
<emphasis>lfs</emphasis> user to have a
|
||||
password), give <emphasis>lfs</emphasis> a password:</para>
|
||||
|
||||
<screen><userinput>passwd lfs</userinput></screen>
|
||||
<screen role="nodump"><userinput>passwd lfs</userinput></screen>
|
||||
|
||||
<para>Grant <emphasis>lfs</emphasis> full access to
|
||||
<filename class="directory">$LFS/tools</filename> by making
|
||||
|
@ -182,7 +182,7 @@ chapter.</para></note>
|
||||
<para>To install the Glibc locales anyway, use the following
|
||||
command:</para>
|
||||
|
||||
<screen><userinput>make localedata/install-locales</userinput></screen>
|
||||
<screen role="nodump"><userinput>make localedata/install-locales</userinput></screen>
|
||||
|
||||
<para>To save time, an alternative to running the
|
||||
previous command (which generates and installs every locale Glibc is
|
||||
|
@ -69,7 +69,7 @@ on the system rather than using its own readline version.</para></listitem>
|
||||
<para>Run the newly compiled <command>bash</command> program (replacing the one that is
|
||||
currently being executed):</para>
|
||||
|
||||
<screen><userinput>exec /bin/bash --login +h</userinput></screen>
|
||||
<screen role="nodump"><userinput>exec /bin/bash --login +h</userinput></screen>
|
||||
|
||||
<note><para>The parameters used make the <command>bash</command>
|
||||
process an interactive login shell and continue to disable hashing so
|
||||
|
@ -152,7 +152,7 @@ instructions, instead of the <parameter>install-locales</parameter>
|
||||
target used above, will install the minimum set of locales necessary
|
||||
for the tests to run successfully:</para>
|
||||
|
||||
<screen><userinput>mkdir -p /usr/lib/locale
|
||||
<screen role="nodump"><userinput>mkdir -p /usr/lib/locale
|
||||
localedef -i de_DE -f ISO-8859-1 de_DE
|
||||
localedef -i de_DE@euro -f ISO-8859-15 de_DE@euro
|
||||
localedef -i en_HK -f ISO-8859-1 en_HK
|
||||
@ -223,7 +223,7 @@ EOF</userinput></screen>
|
||||
|
||||
<para>To determine the local time zone, run the following script:</para>
|
||||
|
||||
<screen><userinput>tzselect</userinput></screen>
|
||||
<screen role="nodump"><userinput>tzselect</userinput></screen>
|
||||
|
||||
<para>After answering a few questions about the location, the script
|
||||
will output the name of the time zone (e.g.,
|
||||
|
@ -67,7 +67,7 @@ linkend="chapter-temporary-tools"/> and the
|
||||
files have been created, user name and group name resolution will now
|
||||
work.</para>
|
||||
|
||||
<screen><userinput>exec /tools/bin/bash --login +h</userinput></screen>
|
||||
<screen role="nodump"><userinput>exec /tools/bin/bash --login +h</userinput></screen>
|
||||
|
||||
<para>Note the use of the <parameter>+h</parameter> directive. This tells
|
||||
<command>bash</command> not to use its internal path hashing. Without this
|
||||
|
@ -132,7 +132,7 @@ command.</para>
|
||||
<para>Choose a password for user <emphasis>root</emphasis> and set it
|
||||
by running:</para>
|
||||
|
||||
<screen><userinput>passwd root</userinput></screen>
|
||||
<screen role="nodump"><userinput>passwd root</userinput></screen>
|
||||
</sect2>
|
||||
|
||||
|
||||
|
@ -25,11 +25,11 @@ unsure whether the user entered chroot with the command given in
|
||||
<xref linkend="ch-system-chroot" role=","/> first exit from
|
||||
chroot:</para>
|
||||
|
||||
<screen><userinput>logout</userinput></screen>
|
||||
<screen role="nodump"><userinput>logout</userinput></screen>
|
||||
|
||||
<para>Then reenter it with:</para>
|
||||
|
||||
<screen><userinput>chroot $LFS /tools/bin/env -i \
|
||||
<screen role="nodump"><userinput>chroot $LFS /tools/bin/env -i \
|
||||
HOME=/root TERM=$TERM PS1='\u:\w\$ ' \
|
||||
PATH=/bin:/usr/bin:/sbin:/usr/sbin \
|
||||
/tools/bin/bash --login</userinput></screen>
|
||||
|
@ -73,7 +73,7 @@ system. If the <filename>/usr/share/info/dir</filename> file ever
|
||||
needs to be recreated, the following optional commands will accomplish
|
||||
the task:</para>
|
||||
|
||||
<screen><userinput>cd /usr/share/info
|
||||
<screen role="nodump"><userinput>cd /usr/share/info
|
||||
rm dir
|
||||
for f in *
|
||||
do install-info $f dir 2>/dev/null
|
||||
|
@ -134,7 +134,7 @@ these programs.</para>
|
||||
<para>Documentation for other available options can be obtained by
|
||||
running the following command:</para>
|
||||
|
||||
<screen><userinput>vim -c ':options'</userinput></screen>
|
||||
<screen role="nodump"><userinput>vim -c ':options'</userinput></screen>
|
||||
|
||||
</sect2>
|
||||
|
||||
|
@ -40,7 +40,7 @@ EOF</userinput></screen>
|
||||
character (accessible by pressing AltGr+E), the following settings are
|
||||
correct:</para>
|
||||
|
||||
<screen><userinput>cat >/etc/sysconfig/console <<"EOF"
|
||||
<screen role="nodump"><userinput>cat >/etc/sysconfig/console <<"EOF"
|
||||
<literal>KEYMAP="es euro2"
|
||||
FONT="lat9-16 -u iso01"</literal>
|
||||
EOF</userinput></screen>
|
||||
@ -49,7 +49,7 @@ EOF</userinput></screen>
|
||||
character set. If using ISO 8859-1 and, therefore, a pound sign
|
||||
instead of Euro, the correct <envar>FONT</envar> line would be:</para>
|
||||
|
||||
<screen><userinput>FONT="lat1-16"</userinput></screen></note>
|
||||
<screen role="nodump"><userinput>FONT="lat1-16"</userinput></screen></note>
|
||||
|
||||
<para>If the <envar>KEYMAP</envar> or <envar>FONT</envar> variable is not set, the
|
||||
<command>console</command> initscript will not run the corresponding
|
||||
@ -61,14 +61,14 @@ applications. For example, Emacs displays its help (instead of erasing the
|
||||
character before the cursor) when Backspace is pressed. To check if the keymap
|
||||
in use is affected (this works only for i386 keymaps):</para>
|
||||
|
||||
<screen><userinput>zgrep '\W14\W' <replaceable>[/path/to/your/keymap]</replaceable></userinput></screen>
|
||||
<screen role="nodump"><userinput>zgrep '\W14\W' <replaceable>[/path/to/your/keymap]</replaceable></userinput></screen>
|
||||
|
||||
<beginpage/>
|
||||
|
||||
<para>If the keycode 14 is Backspace instead of Delete, create the
|
||||
following keymap snippet to fix this issue:</para>
|
||||
|
||||
<screen><userinput>mkdir -p /etc/kbd && cat > /etc/kbd/bs-sends-del <<"EOF"
|
||||
<screen role="nodump"><userinput>mkdir -p /etc/kbd && cat > /etc/kbd/bs-sends-del <<"EOF"
|
||||
<literal> keycode 14 = Delete Delete Delete Delete
|
||||
alt keycode 14 = Meta_Delete
|
||||
altgr alt keycode 14 = Meta_Delete
|
||||
@ -81,7 +81,7 @@ EOF</userinput></screen>
|
||||
<para>Tell the <command>console</command> script to load this
|
||||
snippet after the main keymap:</para>
|
||||
|
||||
<screen><userinput>cat >>/etc/sysconfig/console <<"EOF"
|
||||
<screen role="nodump"><userinput>cat >>/etc/sysconfig/console <<"EOF"
|
||||
<literal>KEYMAP_CORRECTIONS="/etc/kbd/bs-sends-del"</literal>
|
||||
EOF</userinput></screen>
|
||||
|
||||
|
@ -62,7 +62,7 @@ machine will be connected to an existing network).</para>
|
||||
<para>If a network card is not going to be configured, create the
|
||||
<filename>/etc/hosts</filename> file by running:</para>
|
||||
|
||||
<screen><userinput>cat > /etc/hosts << "EOF"
|
||||
<screen role="nodump"><userinput>cat > /etc/hosts << "EOF"
|
||||
<literal># Begin /etc/hosts (no network card version)
|
||||
|
||||
127.0.0.1 <replaceable>[<HOSTNAME>.example.org]</replaceable> <replaceable>[HOSTNAME]</replaceable> localhost
|
||||
|
@ -65,7 +65,7 @@ canonical charmap for your chosen locale.</para>
|
||||
<para>The list of all locales supported by Glibc can be obtained by running
|
||||
the following command:</para>
|
||||
|
||||
<screen><userinput>locale -a</userinput></screen>
|
||||
<screen role="nodump"><userinput>locale -a</userinput></screen>
|
||||
|
||||
<para>Locales can have a number of synonyms, e.g. <quote>ISO-8859-1</quote> is
|
||||
also referred to as <quote>iso8859-1</quote> and <quote>iso88591</quote>.
|
||||
@ -76,7 +76,7 @@ canonical name, run the following command, where
|
||||
<command>locale -a</command> for your preferred locale
|
||||
(<quote>en_GB.iso88591</quote> in our example).</para>
|
||||
|
||||
<screen><userinput>LC_ALL=<replaceable>[locale name]</replaceable> locale charmap</userinput></screen>
|
||||
<screen role="nodump"><userinput>LC_ALL=<replaceable>[locale name]</replaceable> locale charmap</userinput></screen>
|
||||
|
||||
<para>For the <quote>en_GB.iso88591</quote> locale, the above command
|
||||
will print:</para>
|
||||
|
@ -181,7 +181,7 @@ handled in one of two ways:</para>
|
||||
<command>modprobe</command> command <quote>when loading this module,
|
||||
also load this other module, at the same time.</quote> For example:</para>
|
||||
|
||||
<screen><userinput>install snd-pcm modprobe -i snd-pcm ; modprobe \
|
||||
<screen role="nodump"><userinput>install snd-pcm modprobe -i snd-pcm ; modprobe \
|
||||
snd-pcm-oss ; true</userinput></screen>
|
||||
|
||||
<para>This will cause the system to load both the
|
||||
|
@ -45,7 +45,7 @@ un-tarring.</para>
|
||||
<para>If, in <xref linkend="ch-scripts-console" role=","/> it was decided to
|
||||
compile the keymap into the kernel, issue the command below:</para>
|
||||
|
||||
<screen><userinput>loadkeys -m /usr/share/kbd/keymaps/<replaceable>[path to keymap]</replaceable> > \
|
||||
<screen role="nodump"><userinput>loadkeys -m /usr/share/kbd/keymaps/<replaceable>[path to keymap]</replaceable> > \
|
||||
drivers/char/defkeymap.c</userinput></screen>
|
||||
|
||||
<para>For example, if using a Dutch keyboard, use
|
||||
@ -58,7 +58,7 @@ url="&blfs-root;view/svn/longindex.html#kernel-config-index"><phrase
|
||||
condition="pdf">&blfs-root;view/svn/
|
||||
longindex.html#kernel-config-index</phrase></ulink>:</para>
|
||||
|
||||
<screen><userinput>make menuconfig</userinput></screen>
|
||||
<screen role="nodump"><userinput>make menuconfig</userinput></screen>
|
||||
|
||||
<para>Alternatively, <command>make oldconfig</command> may be more appropriate in some
|
||||
situations. See the <filename>README</filename> file for more
|
||||
|
@ -42,13 +42,13 @@ umount $LFS/sys</userinput></screen>
|
||||
<para>If multiple partitions were created, unmount the other
|
||||
partitions before unmounting the main one, like this:</para>
|
||||
|
||||
<screen><userinput>umount $LFS/usr
|
||||
<screen role="nodump"><userinput>umount $LFS/usr
|
||||
umount $LFS/home
|
||||
umount $LFS</userinput></screen>
|
||||
|
||||
<para>Now, reboot the system with:</para>
|
||||
|
||||
<screen><userinput>shutdown -r now</userinput></screen>
|
||||
<screen role="nodump"><userinput>shutdown -r now</userinput></screen>
|
||||
|
||||
<para>Assuming the GRUB boot loader was set up as outlined earlier, the menu
|
||||
is set to boot <emphasis>LFS &version;</emphasis> automatically.</para>
|
||||
|
@ -20,7 +20,7 @@ must be sure that all critical system devices get created properly.</para>
|
||||
<para>In order to determine whether the host kernel meets the
|
||||
requirements outlined above, run the following command:</para>
|
||||
|
||||
<screen><userinput>cat /proc/version</userinput></screen>
|
||||
<screen role="nodump"><userinput>cat /proc/version</userinput></screen>
|
||||
|
||||
<para>This will produce output similar to:</para>
|
||||
|
||||
|
@ -12,7 +12,7 @@ conventions used throughout this book. This section contains some
|
||||
examples of the typographical format found throughout Linux From
|
||||
Scratch.</para>
|
||||
|
||||
<screen><userinput>./configure --prefix=/usr</userinput></screen>
|
||||
<screen role="nodump"><userinput>./configure --prefix=/usr</userinput></screen>
|
||||
|
||||
<para>This form of text is designed to be typed exactly as seen unless
|
||||
otherwise noted in the surrounding text. It is also used in the
|
||||
@ -37,7 +37,7 @@ purpose is to emphasize important points or items.</para>
|
||||
community and to external pages. It includes HOWTOs, download locations,
|
||||
and websites.</para>
|
||||
|
||||
<screen><userinput>cat > $LFS/etc/group << "EOF"
|
||||
<screen role="nodump"><userinput>cat > $LFS/etc/group << "EOF"
|
||||
<literal>root:x:0:
|
||||
bin:x:1:
|
||||
......</literal>
|
||||
|
Loading…
Reference in New Issue
Block a user