Changeset 2ca8941
- Timestamp:
- 02/11/2013 08:09:22 PM (11 years ago)
- 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, 7.3, 7.4, 7.5, 7.6, 7.7, 7.8, 7.9, 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:
- c1ec480
- Parents:
- c0220ed
- Files:
-
- 56 edited
Legend:
- Unmodified
- Added
- Removed
-
appendices/acknowledgments.xml
rc0220ed r2ca8941 31 31 <listitem> 32 32 <para><ulink url="mailto:bdubbs@linuxfromscratch.org">Bruce 33 Dubbs</ulink> <bdubbs@linuxfromscratch.org> – LFS Release 33 Dubbs</ulink> <bdubbs@linuxfromscratch.org> – LFS Release 34 34 Manager, LFS Technical Writer/Editor</para> 35 35 </listitem> … … 147 147 148 148 <listitem> 149 <para><ulink url="mailto:lfalcon@thymbra.com">Luis Falcon</ulink> 149 <para><ulink url="mailto:lfalcon@thymbra.com">Luis Falcon</ulink> 150 150 <Luis Falcon> – torredehanoi.org mirror</para> 151 151 </listitem> … … 235 235 236 236 <listitem> 237 <para><ulink url="mailto:info@shizu-net.jp">Shizunet Co.,Ltd.</ulink> 237 <para><ulink url="mailto:info@shizu-net.jp">Shizunet Co.,Ltd.</ulink> 238 238 <info@shizu-net.jp> – lfs.mirror.shizu-net.jp mirror</para> 239 239 </listitem> 240 240 241 241 <listitem> 242 <para><ulink url="http://www.initworld.com/">Init World</ulink> 242 <para><ulink url="http://www.initworld.com/">Init World</ulink> 243 243 <http://www.initworld.com/> – lfs.initworld.com mirror</para> 244 244 </listitem> … … 345 345 <para><ulink url="mailto:alexander@linuxfromscratch.org">Alexander 346 346 E. Patrakov</ulink> <alexander@linuxfromscratch.org> – LFS 347 Technical Writer, LFS Internationalization Editor, 347 Technical Writer, LFS Internationalization Editor, 348 348 LFS Live CD Maintainer</para> 349 349 </listitem> -
appendices/dependencies.xml
rc0220ed r2ca8941 30 30 being placed inside scripts installed to the final system. This is obviously 31 31 not desirable.</para> 32 32 33 33 <para>The last list of dependencies are optional packages that are not 34 34 addressed in LFS, but could be useful to the user. These packages may have … … 838 838 839 839 <seglistitem> 840 <seg>Bash, Binutils, Bison, Coreutils, Diffutils, GCC, Gettext, Glibc, 840 <seg>Bash, Binutils, Bison, Coreutils, Diffutils, GCC, Gettext, Glibc, 841 841 Grep, Make, Ncurses, Sed, Texinfo, and Xz</seg> 842 842 </seglistitem> … … 1556 1556 1557 1557 <seglistitem> 1558 <seg>Bash, Binutils, Coreutils, Gawk, GCC, Glibc, Grep, Make, 1558 <seg>Bash, Binutils, Coreutils, Gawk, GCC, Glibc, Grep, Make, 1559 1559 Popt, and Sed</seg> 1560 1560 </seglistitem> -
appendices/scripts.xml
rc0220ed r2ca8941 3 3 "http://www.oasis-open.org/docbook/xml/4.5/docbookx.dtd" [ 4 4 <!ENTITY % general-entities SYSTEM "../general.ent"> 5 <!ENTITY checkfs SYSTEM "checkfs.script"> 6 <!ENTITY cleanfs SYSTEM "cleanfs.script"> 7 <!ENTITY console SYSTEM "console.script"> 8 <!ENTITY functions SYSTEM "functions.script"> 9 <!ENTITY halt SYSTEM "halt.script"> 10 <!ENTITY initfunctions SYSTEM "init-functions.script"> 11 <!ENTITY localnet SYSTEM "localnet.script"> 12 <!ENTITY modules SYSTEM "modules.script"> 13 <!ENTITY mountfs SYSTEM "mountfs.script"> 14 <!ENTITY mountvirtfs SYSTEM "mountvirtfs.script"> 15 <!ENTITY network SYSTEM "network.script"> 16 <!ENTITY rc SYSTEM "rc.script"> 17 <!ENTITY reboot SYSTEM "reboot.script"> 18 <!ENTITY sendsignals SYSTEM "sendsignals.script"> 19 <!ENTITY setclock SYSTEM "setclock.script"> 20 <!ENTITY swap SYSTEM "swap.script"> 21 <!ENTITY sysctl SYSTEM "sysctl.script"> 22 <!ENTITY sysklogd SYSTEM "sysklogd.script"> 23 <!ENTITY template SYSTEM "template.script"> 24 <!ENTITY udev SYSTEM "udev.script"> 25 <!ENTITY udev_retry SYSTEM "udev_retry.script"> 26 <!ENTITY createfiles SYSTEM "createfiles.script"> 27 <!ENTITY modules_sys SYSTEM "modules-sysinit.script"> 28 <!ENTITY cfg_udev_retry SYSTEM "config-udev-retry.script"> 29 <!ENTITY ifup SYSTEM "ifup.script"> 30 <!ENTITY ifdown SYSTEM "ifdown.script"> 31 <!ENTITY ipv4_static SYSTEM "ipv4-static.script"> 32 <!ENTITY ipv4_static_route SYSTEM "ipv4-static-route.script"> 5 <!ENTITY checkfs SYSTEM "checkfs.script"> 6 <!ENTITY cleanfs SYSTEM "cleanfs.script"> 7 <!ENTITY console SYSTEM "console.script"> 8 <!ENTITY functions SYSTEM "functions.script"> 9 <!ENTITY halt SYSTEM "halt.script"> 10 <!ENTITY initfunctions SYSTEM "init-functions.script"> 11 <!ENTITY localnet SYSTEM "localnet.script"> 12 <!ENTITY modules SYSTEM "modules.script"> 13 <!ENTITY mountfs SYSTEM "mountfs.script"> 14 <!ENTITY mountvirtfs SYSTEM "mountvirtfs.script"> 15 <!ENTITY network SYSTEM "network.script"> 16 <!ENTITY rc SYSTEM "rc.script"> 17 <!ENTITY reboot SYSTEM "reboot.script"> 18 <!ENTITY sendsignals SYSTEM "sendsignals.script"> 19 <!ENTITY setclock SYSTEM "setclock.script"> 20 <!ENTITY swap SYSTEM "swap.script"> 21 <!ENTITY sysctl SYSTEM "sysctl.script"> 22 <!ENTITY sysklogd SYSTEM "sysklogd.script"> 23 <!ENTITY template SYSTEM "template.script"> 24 <!ENTITY udev SYSTEM "udev.script"> 25 <!ENTITY udev_retry SYSTEM "udev_retry.script"> 26 <!ENTITY createfiles SYSTEM "createfiles.script"> 27 <!ENTITY modules_sys SYSTEM "modules-sysinit.script"> 28 <!ENTITY cfg_udev_retry SYSTEM "config-udev-retry.script"> 29 <!ENTITY ifup SYSTEM "ifup.script"> 30 <!ENTITY ifdown SYSTEM "ifdown.script"> 31 <!ENTITY ipv4_static SYSTEM "ipv4-static.script"> 32 <!ENTITY ipv4_static_route SYSTEM "ipv4-static-route.script"> 33 33 %general-entities; 34 34 ]> … … 52 52 <title>/etc/rc.d/init.d/rc</title> 53 53 54 <para>The <systemitem>rc</systemitem> script is the first script called by 54 <para>The <systemitem>rc</systemitem> script is the first script called by 55 55 <application>init</application> and initiates the boot process.</para> 56 56 57 <screen>&rc;</screen> 57 <screen>&rc;</screen> 58 58 </sect1> 59 59 60 60 <sect1 id="init-functions" role="wrap"> 61 61 <title>/lib/lsb/init-functions</title> 62 <screen>&initfunctions;</screen> 62 <screen>&initfunctions;</screen> 63 63 </sect1> 64 64 65 65 <sect1 id="functions" role="wrap"> 66 66 <title>/etc/rc.d/init.d/functions</title> 67 <screen>&functions;</screen> 67 <screen>&functions;</screen> 68 68 </sect1> 69 69 70 70 <sect1 id="mountvirtfs" role="wrap"> 71 71 <title>/etc/rc.d/init.d/mountvirtfs</title> 72 <screen>&mountvirtfs;</screen> 72 <screen>&mountvirtfs;</screen> 73 73 </sect1> 74 74 75 75 <sect1 id="modules" role="wrap"> 76 76 <title>/etc/rc.d/init.d/modules</title> 77 <screen>&modules;</screen> 77 <screen>&modules;</screen> 78 78 </sect1> 79 79 80 80 <sect1 id="udev" role="wrap"> 81 81 <title>/etc/rc.d/init.d/udev</title> 82 <screen>&udev;</screen> 82 <screen>&udev;</screen> 83 83 </sect1> 84 84 85 85 <sect1 id="swap" role="wrap"> 86 86 <title>/etc/rc.d/init.d/swap</title> 87 <screen>&swap;</screen> 87 <screen>&swap;</screen> 88 88 </sect1> 89 89 90 90 <sect1 id="setclock" role="wrap"> 91 91 <title>/etc/rc.d/init.d/setclock</title> 92 <screen>&setclock;</screen> 92 <screen>&setclock;</screen> 93 93 </sect1> 94 94 95 95 <sect1 id="checkfs" role="wrap"> 96 96 <title>/etc/rc.d/init.d/checkfs</title> 97 <screen>&checkfs;</screen> 97 <screen>&checkfs;</screen> 98 98 </sect1> 99 99 100 100 <sect1 id="mountfs" role="wrap"> 101 101 <title>/etc/rc.d/init.d/mountfs</title> 102 <screen>&mountfs;</screen> 102 <screen>&mountfs;</screen> 103 103 </sect1> 104 104 105 105 <sect1 id="udev_retry" role="wrap"> 106 106 <title>/etc/rc.d/init.d/udev_retry</title> 107 <screen>&udev_retry;</screen> 107 <screen>&udev_retry;</screen> 108 108 </sect1> 109 109 110 110 <sect1 id="cleanfs" role="wrap"> 111 111 <title>/etc/rc.d/init.d/cleanfs</title> 112 <screen>&cleanfs;</screen> 112 <screen>&cleanfs;</screen> 113 113 </sect1> 114 114 115 115 <sect1 id="console" role="wrap"> 116 116 <title>/etc/rc.d/init.d/console</title> 117 <screen>&console;</screen> 117 <screen>&console;</screen> 118 118 </sect1> 119 119 120 120 <sect1 id="localnet" role="wrap"> 121 121 <title>/etc/rc.d/init.d/localnet</title> 122 <screen>&localnet;</screen> 122 <screen>&localnet;</screen> 123 123 </sect1> 124 124 125 125 <sect1 id="sysctlscript" role="wrap"> 126 126 <title>/etc/rc.d/init.d/sysctl</title> 127 <screen>&sysctl;</screen> 127 <screen>&sysctl;</screen> 128 128 </sect1> 129 129 130 130 <sect1 id="sysklogd" role="wrap"> 131 131 <title>/etc/rc.d/init.d/sysklogd</title> 132 <screen>&sysklogd;</screen> 132 <screen>&sysklogd;</screen> 133 133 </sect1> 134 134 135 135 <sect1 id="network" role="wrap"> 136 136 <title>/etc/rc.d/init.d/network</title> 137 <screen>&network;</screen> 137 <screen>&network;</screen> 138 138 </sect1> 139 139 140 140 <sect1 id="sendsignals" role="wrap"> 141 141 <title>/etc/rc.d/init.d/sendsignals</title> 142 <screen>&sendsignals;</screen> 142 <screen>&sendsignals;</screen> 143 143 </sect1> 144 144 145 145 <sect1 id="rebootscript" role="wrap"> 146 146 <title>/etc/rc.d/init.d/reboot</title> 147 <screen>&reboot;</screen> 147 <screen>&reboot;</screen> 148 148 </sect1> 149 149 150 150 <sect1 id="haltscript" role="wrap"> 151 151 <title>/etc/rc.d/init.d/halt</title> 152 <screen>&halt;</screen> 152 <screen>&halt;</screen> 153 153 </sect1> 154 154 155 155 <sect1 id="template" role="wrap"> 156 156 <title>/etc/rc.d/init.d/template</title> 157 <screen>&template;</screen> 157 <screen>&template;</screen> 158 158 </sect1> 159 159 160 160 <sect1 id="modulessys" role="wrap"> 161 161 <title>/etc/sysconfig/modules</title> 162 <screen>&modules_sys;</screen> 162 <screen>&modules_sys;</screen> 163 163 </sect1> 164 164 165 165 <sect1 id="createfiles" role="wrap"> 166 166 <title>/etc/sysconfig/createfiles</title> 167 <screen>&createfiles;</screen> 167 <screen>&createfiles;</screen> 168 168 </sect1> 169 169 170 170 <sect1 id="config-udev-retry" role="wrap"> 171 171 <title>/etc/sysconfig/udev-retry</title> 172 <screen>&cfg_udev_retry;</screen> 172 <screen>&cfg_udev_retry;</screen> 173 173 </sect1> 174 174 175 175 <sect1 id="ifup" role="wrap"> 176 176 <title>/sbin/ifup</title> 177 <screen>&ifup;</screen> 177 <screen>&ifup;</screen> 178 178 </sect1> 179 179 180 180 <sect1 id="ifdown" role="wrap"> 181 181 <title>/sbin/ifdown</title> 182 <screen>&ifdown;</screen> 182 <screen>&ifdown;</screen> 183 183 </sect1> 184 184 185 185 <sect1 id="ipv4static" role="wrap"> 186 186 <title>/lib/services/ipv4-static</title> 187 <screen>&ipv4_static;</screen> 187 <screen>&ipv4_static;</screen> 188 188 </sect1> 189 189 190 190 <sect1 id="ipv4route" role="wrap"> 191 191 <title>/lib/services/ipv4-static-route</title> 192 <screen>&ipv4_static_route;</screen> 192 <screen>&ipv4_static_route;</screen> 193 193 </sect1> 194 194 -
appendices/udev-rules.xml
rc0220ed r2ca8941 3 3 "http://www.oasis-open.org/docbook/xml/4.5/docbookx.dtd" [ 4 4 <!ENTITY % general-entities SYSTEM "../general.ent"> 5 <!ENTITY lfs-rules SYSTEM "55-lfs.rules.script"> 5 <!ENTITY lfs-rules SYSTEM "55-lfs.rules.script"> 6 6 %general-entities; 7 7 ]> … … 19 19 <sect1 id="lfsrules" role="wrap"> 20 20 <title>55-lfs.rules</title> 21 <screen>&lfs-rules;</screen> 21 <screen>&lfs-rules;</screen> 22 22 </sect1> 23 23 -
chapter01/changelog.xml
rc0220ed r2ca8941 86 86 <itemizedlist> 87 87 <listitem> 88 <para>[bdubbs] - Remove bashisms from init-functions 88 <para>[bdubbs] - Remove bashisms from init-functions 89 89 file in the boot scripts. </para> 90 90 </listitem> … … 141 141 <listitem> 142 142 <para>[bdubbs] - Update udev-lfs init-net-rules.sh 143 script for "en*" devices introduced in systemd-197. 143 script for "en*" devices introduced in systemd-197. 144 144 </para> 145 145 </listitem> … … 218 218 </listitem> 219 219 <listitem> 220 <para>[bdubbs] - Fix the location for mounting /dev/shm 220 <para>[bdubbs] - Fix the location for mounting /dev/shm 221 221 inside chroot. Fixes 222 222 <ulink url="&lfs-ticket-root;3258">#3258</ulink>.</para> … … 509 509 <listitem> 510 510 <para>[bdubbs] - Add notes to the gcc and binutils 511 sections in Chapter 6 about "link time optimization" 511 sections in Chapter 6 about "link time optimization" 512 512 and the extra files built by gcc. Fixes 513 513 <ulink url="&lfs-ticket-root;3200">#3200</ulink>.</para> … … 519 519 <listitem> 520 520 <para>[bdubbs] - Update installed program description 521 for several packages. Thanks to Chris Staub for the patch. 522 Fixes <ulink url="&lfs-ticket-root;3203">#3203</ulink>.</para> 521 for several packages. Thanks to Chris Staub for the patch. 522 Fixes <ulink url="&lfs-ticket-root;3203">#3203</ulink>.</para> 523 523 </listitem> 524 524 </itemizedlist> … … 529 529 <itemizedlist> 530 530 <listitem> 531 <para>[bdubbs] - Remove utmpdump from sysvinit 531 <para>[bdubbs] - Remove utmpdump from sysvinit 532 532 because it is now installed by util-linux. Thanks to 533 533 Chris Staub for the patch. Fixes 534 <ulink url="&lfs-ticket-root;3202">#3202</ulink>.</para> 534 <ulink url="&lfs-ticket-root;3202">#3202</ulink>.</para> 535 535 </listitem> 536 536 <listitem> 537 537 <para>[bdubbs] - Change procps to not install the 538 538 kill program that is now installed by util-linux. Fixes 539 <ulink url="&lfs-ticket-root;3201">#3201</ulink>.</para> 539 <ulink url="&lfs-ticket-root;3201">#3201</ulink>.</para> 540 540 </listitem> 541 541 <listitem> 542 542 <para>[bdubbs] - Update to util-linux-2.22.1. Fixes 543 <ulink url="&lfs-ticket-root;3199">#3199</ulink>.</para> 543 <ulink url="&lfs-ticket-root;3199">#3199</ulink>.</para> 544 544 </listitem> 545 545 <listitem> 546 546 <para>[bdubbs] - Update to linux-3.6.2. Fixes 547 <ulink url="&lfs-ticket-root;3198">#3198</ulink>.</para> 547 <ulink url="&lfs-ticket-root;3198">#3198</ulink>.</para> 548 548 </listitem> 549 549 <listitem> 550 550 <para>[bdubbs] - Add boot/shutdown script customization 551 instructions.</para> 551 instructions.</para> 552 552 </listitem> 553 553 </itemizedlist> … … 667 667 <itemizedlist> 668 668 <listitem> 669 <para>[bdubbs] - Add udevadm trigger --action=change line 669 <para>[bdubbs] - Add udevadm trigger --action=change line 670 670 to udev script to support initramfs better.</para> 671 671 </listitem> … … 677 677 <itemizedlist> 678 678 <listitem> 679 <para>[bdubbs] - Update grub packages and naming 679 <para>[bdubbs] - Update grub packages and naming 680 680 conventions example.</para> 681 681 </listitem> -
chapter02/creatingpartition.xml
rc0220ed r2ca8941 76 76 <title>Other Partition Issues</title> 77 77 78 <para>Requests for advice on system partitioning are often posted on the LFS mailing 78 <para>Requests for advice on system partitioning are often posted on the LFS mailing 79 79 lists. This is a highly subjective topic. The default for most distributions 80 80 is to use the entire drive with the exception of one small swap partition. This 81 is not optimal for LFS for several reasons. It reduces flexibility, makes 81 is not optimal for LFS for several reasons. It reduces flexibility, makes 82 82 sharing of data across multiple distributions or LFS builds more difficult, makes 83 backups more time consuming, and can waste disk space through inefficient 83 backups more time consuming, and can waste disk space through inefficient 84 84 allocation of file system structures.</para> 85 85 86 86 <sect3> 87 87 <title>The Root Partition</title> 88 88 89 89 <para>A root LFS partition (not to be confused with the 90 90 <filename class="directory">/root</filename> directory) of … … 92 92 space to build LFS and most of BLFS, but is small enough so that multiple 93 93 partitions can be easily created for experimentation.</para> </sect3> 94 94 95 95 <sect3> 96 96 <title>The Swap Partition</title> 97 97 98 98 <para>Most distributions automatically create a swap partition. Generally 99 99 the recommended size of the swap partition is about twice the amount of … … 101 101 hold the swap partition to two gigabytes and monitor the amount of disk 102 102 swapping.</para> 103 103 104 104 <para>Swapping is never good. Generally you can tell if a system is 105 105 swapping by just listening to disk activity and observing how the system … … 108 108 swapping becomes a normal occurrence, the best solution is to purchase more 109 109 RAM for your system.</para> </sect3> 110 110 111 111 <sect3> 112 112 <title>Convenience Partitions</title> 113 113 114 114 <para>There are several other partitions that are not required, but should 115 115 be considered when designing a disk layout. The following list 116 116 is not comprehensive, but is meant as a guide.</para> 117 117 118 118 <itemizedlist> 119 119 120 120 <listitem><para>/boot – Highly recommended. Use this partition to 121 121 store kernels and other booting information. To minimize potential boot … … 123 123 your first disk drive. A partition size of 100 megabytes is quite 124 124 adequate.</para></listitem> 125 125 126 126 <listitem><para>/home – Highly recommended. Share your home 127 127 directory and user customization across multiple distributions or LFS 128 128 builds. The size is generally fairly large and depends on available disk 129 129 space.</para></listitem> 130 130 131 131 <listitem><para>/usr – A separate /usr partition is generally used 132 132 if providing a server for a thin client or diskless workstation. It is 133 133 normally not needed for LFS. A size of five gigabytes will handle most 134 134 installations.</para></listitem> 135 135 136 136 <listitem><para>/opt – This directory is most useful for 137 137 BLFS where multiple installations of large packages like Gnome or KDE can … … 139 139 used, 5 to 10 gigabytes is generally adequate.</para> 140 140 </listitem> 141 141 142 142 <listitem><para>/tmp – A separate /tmp directory is rare, but 143 143 useful if configuring a thin client. This partition, if used, will 144 144 usually not need to exceed a couple of gigabytes.</para></listitem> 145 145 146 146 <listitem><para>/usr/src – This partition is very 147 147 useful for providing a location to store BLFS source files and … … 149 149 for building BLFS packages. A reasonably large partition of 30-50 150 150 gigabytes allows plenty of room.</para></listitem> 151 151 152 152 </itemizedlist> 153 153 154 154 <para>Any separate partition that you want automatically mounted upon boot 155 155 needs to be specified in the <filename>/etc/fstab</filename>. Details 156 156 about how to specify partitions will be discussed in <xref 157 157 linkend="ch-bootable-fstab"/>. </para> 158 158 159 159 </sect3> 160 160 </sect2> -
chapter03/introduction.xml
rc0220ed r2ca8941 54 54 <command>wget</command>. For example:</para> 55 55 56 <screen role="nodump"><userinput>wget -i wget-list -P $LFS/sources</userinput></screen> 56 <screen role="nodump"><userinput>wget -i wget-list -P $LFS/sources</userinput></screen> 57 57 58 <para>Additionally, starting with LFS-7.0, there is a separate file, 58 <para>Additionally, starting with LFS-7.0, there is a separate file, 59 59 <ulink url="../md5sums">md5sums</ulink>, can be used to verify that all 60 the correct packages are available before proceeding. Place that file in 60 the correct packages are available before proceeding. Place that file in 61 61 <filename class="directory">$LFS/sources</filename> and run:</para> 62 62 63 63 <screen role="nodump"><userinput>pushd $LFS/sources 64 64 md5sum -c md5sums 65 popd</userinput></screen> 65 popd</userinput></screen> 66 66 67 67 </sect1> -
chapter05/adjusting.xml
rc0220ed r2ca8941 37 37 $LFS_TGT-gcc -dumpspecs | sed \ 38 38 -e 's@/lib\(64\)\?/ld@/tools&@g' \ 39 -e "/^\*cpp:$/{n;s,$, -isystem /tools/include,}" > $SPECS 39 -e "/^\*cpp:$/{n;s,$, -isystem /tools/include,}" > $SPECS 40 40 echo "New specs file is: $SPECS" 41 41 unset SPECS</userinput></screen> -
chapter05/binutils-pass1.xml
rc0220ed r2ca8941 44 44 <title>Installation of Cross Binutils</title> 45 45 46 <note><para>Go back and re-read the notes in the previous section. 46 <note><para>Go back and re-read the notes in the previous section. 47 47 Understanding the notes labeled important will save you a lot 48 48 of problems later.</para></note> … … 127 127 </listitem> 128 128 </varlistentry> 129 129 130 130 <varlistentry> 131 131 <term><parameter>--disable-werror</parameter></term> -
chapter05/check.xml
rc0220ed r2ca8941 55 55 <screen><userinput remap="test">make check</userinput></screen> 56 56 57 <para>Note that the Check test suite may take a relatively long 57 <para>Note that the Check test suite may take a relatively long 58 58 (up to 4 SBU) time.</para> 59 59 -
chapter05/e2fsprogs.xml
rc0220ed r2ca8941 81 81 <screen><userinput remap="install">make install-libs</userinput></screen> 82 82 83 <para>Make the installed static libraries writable so debugging symbols can 83 <para>Make the installed static libraries writable so debugging symbols can 84 84 be removed later:</para> 85 85 -
chapter05/gcc-pass2.xml
rc0220ed r2ca8941 63 63 omit this flag by default, and the goal should be to produce a compiler 64 64 that is exactly the same as if it were bootstrapped. Apply the following 65 <command>sed</command> command to force the build to use the flag:</para> 65 <command>sed</command> command to force the build to use the flag:</para> 66 66 67 67 <screen><userinput remap="pre">cp -v gcc/Makefile.in{,.tmp} … … 190 190 flawlessly. This also implies that it was compiled correctly. 191 191 However, the LFS build method should provide a solid compiler 192 without the need to bootstrap each time.</para> 192 without the need to bootstrap each time.</para> 193 193 </listitem> 194 194 </varlistentry> -
chapter05/generalinstructions.xml
rc0220ed r2ca8941 11 11 <title>General Compilation Instructions</title> 12 12 13 <para>When building packages there are several assumptions made within 13 <para>When building packages there are several assumptions made within 14 14 the instructions:</para> 15 15 … … 56 56 linkend='pre-hostreqs'/>, including symbolic links, have been set 57 57 properly:</para> 58 58 59 59 <itemizedlist role='important'> 60 60 61 61 <listitem override='bullet'><para><command>bash</command> is the shell 62 62 in use.</para></listitem> 63 63 64 64 <listitem override='bullet'><para><command>sh</command> is a symbolic 65 65 link to <command>bash</command>.</para></listitem> … … 94 94 <listitem> 95 95 <para>Using the <command>tar</command> program, extract the package 96 to be built. In Chapter 5, ensure you are the <emphasis>lfs</emphasis> 96 to be built. In Chapter 5, ensure you are the <emphasis>lfs</emphasis> 97 97 user when extracting the package.</para> 98 98 </listitem> -
chapter05/glibc.xml
rc0220ed r2ca8941 48 48 and install if they are not:</para> 49 49 50 <screen><userinput remap="pre">if [ ! -r /usr/include/rpc/types.h ]; then 50 <screen><userinput remap="pre">if [ ! -r /usr/include/rpc/types.h ]; then 51 51 su -c 'mkdir -p /usr/include/rpc' 52 52 su -c 'cp -v sunrpc/rpc/*.h /usr/include/rpc' -
chapter05/linux-headers.xml
rc0220ed r2ca8941 56 56 <para>Now test and extract the user-visible kernel headers from the source. 57 57 They are placed in an intermediate local directory and copied to the needed 58 location because the extraction process removes any existing files in 58 location because the extraction process removes any existing files in 59 59 the target directory.</para> 60 60 -
chapter06/coreutils.xml
rc0220ed r2ca8941 152 152 mktemp, mv, nice, nl, nohup, nproc, od, paste, pathchk, pinky, pr, 153 153 printenv, printf, ptx, pwd, readlink, realpath, rm, rmdir, runcon, seq, 154 sha1sum, sha224sum, sha256sum, sha384sum, sha512sum, shred, shuf, sleep, 154 sha1sum, sha224sum, sha256sum, sha384sum, sha512sum, shred, shuf, sleep, 155 155 sort, split, stat, stdbuf, stty, sum, sync, tac, tail, tee, test, 156 156 timeout, touch, tr, true, truncate, tsort, tty, uname, unexpand, uniq, -
chapter06/e2fsprogs.xml
rc0220ed r2ca8941 26 26 <para>The E2fsprogs package contains the utilities for handling the 27 27 <systemitem class="filesystem">ext2</systemitem> file system. It also 28 supports the <systemitem class="filesystem">ext3</systemitem> and 28 supports the <systemitem class="filesystem">ext3</systemitem> and 29 29 <systemitem class="filesystem">ext4</systemitem> journaling 30 30 file systems.</para> … … 130 130 <screen><userinput remap="install">make install-libs</userinput></screen> 131 131 132 <para>Make the installed static libraries writable so debugging symbols can 132 <para>Make the installed static libraries writable so debugging symbols can 133 133 be removed later:</para> 134 134 … … 297 297 <term><command>e2undo</command></term> 298 298 <listitem> 299 <para>Replays the undo log undo_log for an ext2/ext3/ext4 filesystem 300 found on a device. This can be used to undo a failed operation by an 299 <para>Replays the undo log undo_log for an ext2/ext3/ext4 filesystem 300 found on a device. This can be used to undo a failed operation by an 301 301 e2fsprogs program.</para> 302 302 <indexterm zone="ch-system-e2fsprogs e2undo"> … … 363 363 <listitem> 364 364 <para>By default checks <systemitem class="filesystem">ext4</systemitem> 365 development file systems. This is a hard link to 365 development file systems. This is a hard link to 366 366 <command>e2fsck</command>.</para> 367 367 <indexterm zone="ch-system-e2fsprogs fsck.ext4dev"> -
chapter06/flex.xml
rc0220ed r2ca8941 123 123 <term><command>flex++</command></term> 124 124 <listitem> 125 <para>An extension of flex, is used for generating C++ code 125 <para>An extension of flex, is used for generating C++ code 126 126 and classes. It is a symbolic link to <command>flex</command></para> 127 127 <indexterm zone="ch-system-flex flexpp"> -
chapter06/gcc.xml
rc0220ed r2ca8941 52 52 <command>sed</command> to force the build to use the 53 53 <option>-fomit-frame-pointer</option> compiler flag in order to ensure 54 consistent compiler builds:</para> 54 consistent compiler builds:</para> 55 55 56 56 <screen><userinput remap="pre">case `uname -m` in … … 102 102 <command>gcc</command> to do do "link time optimization" if specified. No 103 103 packages in LFS or BLFS currently use this capability.</para> 104 104 105 105 <para>To use this feature, it must also be enabled in 106 <application>binutils</application>.</para> 106 <application>binutils</application>.</para> 107 107 </note> 108 108 … … 312 312 313 313 <seglistitem> 314 <seg>c++, cc (link to gcc), cpp, g++, gcc, 314 <seg>c++, cc (link to gcc), cpp, g++, gcc, 315 315 gcc-ar, gcc-nm, gcc-ranlib, gccbug, and gcov</seg> 316 316 … … 319 319 libquadmath.{a,so}, libssp.{a,so}, 320 320 libssp_nonshared.a, libstdc++.{a,so} and libsupc++.a</seg> 321 321 322 322 <seg>/usr/include/c++, /usr/lib/gcc, /usr/share/gcc-&gcc-version;</seg> 323 323 </seglistitem> -
chapter06/glibc.xml
rc0220ed r2ca8941 116 116 <listitem> 117 117 <para>The <emphasis>nptl/tst-clock2</emphasis>, 118 <emphasis>nptl/tst-attr3</emphasis>, 119 <emphasis>tst/tst-cputimer1</emphasis>, and 118 <emphasis>nptl/tst-attr3</emphasis>, 119 <emphasis>tst/tst-cputimer1</emphasis>, and 120 120 <emphasis>rt/tst-cpuclock2</emphasis> 121 121 tests have been known to fail. The … … 129 129 authentic AMD processor.</para> 130 130 </listitem> 131 131 132 132 <listitem> 133 133 <para>When running on older and slower hardware or on systems under 134 134 load, some tests can fail because of test timeouts being exceeded. 135 Modifying the make check command to set a TIMEOUTFACTOR is reported to 135 Modifying the make check command to set a TIMEOUTFACTOR is reported to 136 136 help eliminate these errors (e.g. <command>TIMEOUTFACTOR=16 137 137 make -k check</command>).</para> 138 138 </listitem> 139 139 140 140 <listitem> 141 <para>Other tests known to fail on some architectures are posix/bug-regex32, 141 <para>Other tests known to fail on some architectures are posix/bug-regex32, 142 142 misc/tst-writev, elf/check-textrel, nptl/tst-getpid2, and stdio-common/bug22.</para> 143 143 </listitem> 144 144 145 145 </itemizedlist> 146 146 … … 156 156 157 157 <para>Install NIS and RPC related headers that are not installed by 158 default; these are required to rebuild glibc and by several BLFS 158 default; these are required to rebuild glibc and by several BLFS 159 159 packages:</para> 160 160 … … 260 260 261 261 ZONEINFO=/usr/share/zoneinfo 262 mkdir -pv $ZONEINFO/{posix,right} 262 mkdir -pv $ZONEINFO/{posix,right} 263 263 264 264 for tz in etcetera southamerica northamerica europe africa antarctica \ 265 265 asia australasia backward pacificnew solar87 solar88 solar89 \ 266 266 systemv; do 267 zic -L /dev/null -d $ZONEINFO -y "sh yearistype.sh" ${tz} 268 zic -L /dev/null -d $ZONEINFO/posix -y "sh yearistype.sh" ${tz} 267 zic -L /dev/null -d $ZONEINFO -y "sh yearistype.sh" ${tz} 268 zic -L /dev/null -d $ZONEINFO/posix -y "sh yearistype.sh" ${tz} 269 269 zic -L leapseconds -d $ZONEINFO/right -y "sh yearistype.sh" ${tz} 270 270 done … … 386 386 387 387 <para>If desired, the dynamic loader can also search a directory and 388 include the contents of files found there. Generally the files in 388 include the contents of files found there. Generally the files in 389 389 this include directory are one line specifying the desired library path. 390 390 To add this capability run the following commands:</para> -
chapter06/grub.xml
rc0220ed r2ca8941 68 68 <screen><userinput remap="install">make install</userinput></screen> 69 69 70 <para>Using GRUB to make your LFS system bootable will be discussed in 70 <para>Using GRUB to make your LFS system bootable will be discussed in 71 71 <xref linkend="ch-bootable-grub"/>.</para> 72 72 … … 81 81 82 82 <seglistitem> 83 83 84 84 <seg> grub-bios-setup, grub-editenv, grub-fstest, 85 85 grub-install, grub-kbdcomp, grub-menulst2cfg, grub-mkconfig, -
chapter06/iproute2.xml
rc0220ed r2ca8941 143 143 <term><command>ifcfg</command></term> 144 144 <listitem> 145 <para>A shell script wrapper for the <command>ip</command> command. 146 Note that it requires the <command>arping</command> and 147 <command>rdisk</command> programs from the 145 <para>A shell script wrapper for the <command>ip</command> command. 146 Note that it requires the <command>arping</command> and 147 <command>rdisk</command> programs from the 148 148 iputils package found at <ulink url="http://www.skbuff.net/iputils/"/>.</para> 149 149 <indexterm zone="ch-system-iproute2 ifcfg"> -
chapter06/kbd.xml
rc0220ed r2ca8941 125 125 126 126 <seglistitem> 127 <seg>chvt, deallocvt, dumpkeys, fgconsole, getkeycodes, kbdinfo, 127 <seg>chvt, deallocvt, dumpkeys, fgconsole, getkeycodes, kbdinfo, 128 128 kbd_mode, kbdrate, loadkeys, loadunimap, 129 129 mapscrn, openvt, psfaddtable (link to psfxtable), psfgettable (link to -
chapter06/kernfs.xml
rc0220ed r2ca8941 73 73 mount -vt sysfs sysfs $LFS/sys</userinput></screen> 74 74 75 <para>In some host systems, <filename>/dev/shm</filename> is a 75 <para>In some host systems, <filename>/dev/shm</filename> is a 76 76 symbolic link to <filename class="directory">/run/shm</filename>. 77 77 Inside a chroot environment, this temporary file system needs -
chapter06/linux-headers.xml
rc0220ed r2ca8941 55 55 <para>Now test and extract the user-visible kernel headers from the source. 56 56 They are placed in an intermediate local directory and copied to the needed 57 location because the extraction process removes any existing files in 57 location because the extraction process removes any existing files in 58 58 the target directory. There are also some hidden files used by 59 59 the kernel developers and not needed by LFS that are removed from … … 98 98 </indexterm> 99 99 </listitem> 100 </varlistentry> 100 </varlistentry> 101 101 102 102 <varlistentry id="asm-generic"> … … 108 108 </indexterm> 109 109 </listitem> 110 </varlistentry> 110 </varlistentry> 111 111 112 112 <varlistentry id="drm"> … … 118 118 </indexterm> 119 119 </listitem> 120 </varlistentry> 120 </varlistentry> 121 121 122 122 <varlistentry id="linux"> … … 128 128 </indexterm> 129 129 </listitem> 130 </varlistentry> 130 </varlistentry> 131 131 132 132 <varlistentry id="mtd"> … … 138 138 </indexterm> 139 139 </listitem> 140 </varlistentry> 140 </varlistentry> 141 141 142 142 <varlistentry id="rdma"> … … 148 148 </indexterm> 149 149 </listitem> 150 </varlistentry> 150 </varlistentry> 151 151 152 152 <varlistentry id="scsi"> … … 158 158 </indexterm> 159 159 </listitem> 160 </varlistentry> 160 </varlistentry> 161 161 162 162 <varlistentry id="sound"> … … 168 168 </indexterm> 169 169 </listitem> 170 </varlistentry> 170 </varlistentry> 171 171 172 172 <varlistentry id="video"> … … 178 178 </indexterm> 179 179 </listitem> 180 </varlistentry> 180 </varlistentry> 181 181 182 182 <varlistentry id="xen"> … … 188 188 </indexterm> 189 189 </listitem> 190 </varlistentry> 190 </varlistentry> 191 191 192 192 </variablelist> -
chapter06/ncurses.xml
rc0220ed r2ca8941 117 117 wide-character libraries by means of symlinks and linker scripts:</para> 118 118 119 <screen><userinput remap="install">for lib in ncurses form panel menu ; do 120 rm -vf /usr/lib/lib${lib}.so 119 <screen><userinput remap="install">for lib in ncurses form panel menu ; do 120 rm -vf /usr/lib/lib${lib}.so 121 121 echo "INPUT(-l${lib}w)" > /usr/lib/lib${lib}.so 122 122 ln -sfv lib${lib}w.a /usr/lib/lib${lib}.a … … 145 145 libraries since no package installed by compiling from sources would 146 146 link against them at runtime. If you must have such libraries because 147 of some binary-only application or to be compliant with LSB, build 147 of some binary-only application or to be compliant with LSB, build 148 148 the package again with the following commands:</para> 149 149 -
chapter06/perl.xml
rc0220ed r2ca8941 223 223 <term><command>cpanp-run-perl</command></term> 224 224 <listitem> 225 <para>Perl script that is used to enable flushing of the output 225 <para>Perl script that is used to enable flushing of the output 226 226 buffer after each write in spawned processes</para> 227 227 <indexterm zone="ch-system-perl cpanp-run-perl"> -
chapter06/pkgconfig.xml
rc0220ed r2ca8941 56 56 <term><parameter>--with-internal-glib</parameter></term> 57 57 <listitem> 58 <para>This will allow pkg-config to use it's internal version of 58 <para>This will allow pkg-config to use it's internal version of 59 59 glib because an external version is not available in LFS.</para> 60 60 </listitem> -
chapter06/pkgmgt.xml
rc0220ed r2ca8941 228 228 complex and is beyond the scope of LFS.</para> 229 229 230 <para>Slackware uses a <command>tar</command> based system for package 230 <para>Slackware uses a <command>tar</command> based system for package 231 231 archives. This system purposely does not handle package dependencies 232 232 as more complex package managers do. For details of Slackware package … … 260 260 that file via network transfer or CD-ROM to the new system and expanding 261 261 it. From that point, a few configuration files will have to be changed. 262 Configuration files that may need to be updated include: 262 Configuration files that may need to be updated include: 263 263 <filename>/etc/hosts</filename>, 264 264 <filename>/etc/fstab</filename>, … … 269 269 <filename>/etc/sysconfig/rc.site</filename>, 270 270 <filename>/etc/sysconfig/network</filename>, and 271 <filename>/etc/sysconfig/ifconfig.eth0</filename>. 271 <filename>/etc/sysconfig/ifconfig.eth0</filename>. 272 272 </para> 273 273 -
chapter06/popt.xml
rc0220ed r2ca8941 24 24 <title/> 25 25 26 <para>The Popt package contains a library used by some programs 26 <para>The Popt package contains a library used by some programs 27 27 to parse command-line options.</para> 28 28 -
chapter06/procps.xml
rc0220ed r2ca8941 58 58 <listitem> 59 59 <para>This switch disables the obsolete and unportable 60 skill and snice commands.</para> 60 skill and snice commands.</para> 61 61 </listitem> 62 62 </varlistentry> … … 69 69 </varlistentry> 70 70 </variablelist> 71 71 72 72 <para>Compile the package:</para> 73 73 74 74 <screen><userinput remap="make">make</userinput></screen> 75 75 76 <para>The test suite needs some custom modifications for LFS. 76 <para>The test suite needs some custom modifications for LFS. 77 77 The <command>which</command> is not available and the 78 <command>pmap</command> test does not match a newline character in 78 <command>pmap</command> test does not match a newline character in 79 79 two tests. To run the test suite, run the following commands:</para> 80 80 … … 82 82 sed -i 's|exec which sleep|exec echo /tools/bin/sleep|' config/unix.exp 83 83 sed -i 's|pmap_initname\\\$|pmap_initname|' pmap.test/pmap.exp 84 make site.exp 84 make site.exp 85 85 DEJAGNU=global-conf.exp runtest 86 86 popd</userinput></screen> 87 87 88 88 <para>Install the package:</para> 89 89 … … 93 93 <filename class="directory">/usr</filename> is not mounted.</para> 94 94 95 <screen><userinput remap="install">mv -v /usr/lib/libprocps.so.* /lib 95 <screen><userinput remap="install">mv -v /usr/lib/libprocps.so.* /lib 96 96 ln -sfv ../../lib/libprocps.so.1.1.0 /usr/lib/libprocps.so</userinput></screen> 97 97 … … 106 106 107 107 <seglistitem> 108 <seg>free, pgrep, pkill, pmap, ps, pwdx, slabtop, 108 <seg>free, pgrep, pkill, pmap, ps, pwdx, slabtop, 109 109 sysctl, tload, top, uptime, vmstat, w, and, watch</seg> 110 110 <seg>libprocps.so</seg> -
chapter06/psmisc.xml
rc0220ed r2ca8941 56 56 <screen><userinput remap="install">make install</userinput></screen> 57 57 58 <para>Finally, move the <command>killall</command> and <command>fuser</command> 58 <para>Finally, move the <command>killall</command> and <command>fuser</command> 59 59 programs to the location specified by the FHS:</para> 60 60 -
chapter06/systemd.xml
rc0220ed r2ca8941 26 26 <para>The Udev package contains programs for dynamic creation of device 27 27 nodes. The development of udev has been merged with systemd, but 28 most of systemd is incompatible with LFS. Here we build and install just 28 most of systemd is incompatible with LFS. Here we build and install just 29 29 the needed udev files.</para> 30 30 … … 45 45 <note><para>This package is a little different from other packages. The 46 46 initial package that is extracted is 47 <filename>systemd-&systemd-version;.tar.xz</filename> even though the 48 application we are installing is udev. After changing to the 47 <filename>systemd-&systemd-version;.tar.xz</filename> even though the 48 application we are installing is udev. After changing to the 49 49 systemd directory, follow the instructions below.</para></note> 50 50 … … 94 94 <seg>accelerometer, ata_id, cdrom_id, collect, mtd_probe, 95 95 scsi_id, v4l_id, udevadm, and udevd</seg> 96 96 97 97 <seg>libudev.so</seg> 98 98 99 99 <seg>/etc/udev, /lib/udev, /lib/firmware, /usr/share/doc/udev</seg> 100 100 </seglistitem> -
chapter06/sysvinit.xml
rc0220ed r2ca8941 61 61 62 62 <screen><userinput remap="make">sed -i -e '/utmpdump/d' \ 63 -e '/mountpoint/d' src/Makefile</userinput></screen> 63 -e '/mountpoint/d' src/Makefile</userinput></screen> 64 64 65 65 <para>Compile the package:</para> … … 82 82 83 83 <seglistitem> 84 <seg>bootlogd, fstab-decode, halt, init, killall5, last, 84 <seg>bootlogd, fstab-decode, halt, init, killall5, last, 85 85 lastb (link to last), mesg, pidof (link to killall5), 86 86 poweroff (link to halt), reboot (link to halt), runlevel, shutdown, -
chapter06/util-linux.xml
rc0220ed r2ca8941 113 113 114 114 <seg>libblkid.{a,so}, libmount.{a,so}, libuuid.{a,so}</seg> 115 115 116 116 <seg>/usr/include/blkid, /usr/include/libmount, /usr/include/uuid, 117 117 /usr/share/getopt, /var/lib/hwclock</seg> … … 344 344 <term><command>findmnt</command></term> 345 345 <listitem> 346 <para>Is a command line interface to the libmount library 346 <para>Is a command line interface to the libmount library 347 347 for work with mountinfo, fstab and mtab files</para> 348 348 <indexterm zone="ch-system-util-linux findmnt"> … … 398 398 <term><command>fsfreeze</command></term> 399 399 <listitem> 400 <para>Is a very simple wrapper around FIFREEZE/FITHAW ioctl 400 <para>Is a very simple wrapper around FIFREEZE/FITHAW ioctl 401 401 kernel driver operations</para> 402 402 <indexterm zone="ch-system-util-linux fsfreeze"> -
chapter07/bootscripts.xml
rc0220ed r2ca8941 59 59 sendsignals, setclock, static, swap, sysctl, sysklogd, template, 60 60 udev, and udev_retry</seg> 61 <seg>/etc/rc.d, /etc/init.d (symbolic link), /etc/sysconfig, 61 <seg>/etc/rc.d, /etc/init.d (symbolic link), /etc/sysconfig, 62 62 /lib/services, /lib/lsb (symbolic link)</seg> 63 63 </seglistitem> -
chapter07/console.xml
rc0220ed r2ca8941 20 20 level. If non-ASCII characters (e.g., the copyright sign, the British pound 21 21 sign and Euro symbol) will not be used and the keyboard is a U.S. one, much 22 of this section can be skipped. Without the configuration file, (or 22 of this section can be skipped. Without the configuration file, (or 23 23 equivalent settings in <filename>rc.site</filename>), the 24 24 <command>console</command> bootscript will do nothing.</para> … … 79 79 map to load. E.g., in order to load the <quote>lat1-16</quote> font 80 80 together with the <quote>8859-1</quote> application character map 81 (as it is appropriate in the USA), 81 (as it is appropriate in the USA), 82 82 <!-- because of the copyright sign --> 83 83 set this variable to <quote>lat1-16 -m 8859-1</quote>. -
chapter07/introduction.xml
rc0220ed r2ca8941 11 11 <title>Introduction</title> 12 12 13 <para>This chapter discusses configuration files and boot scripts. 14 First, the general configuration files needed to set up networking are 13 <para>This chapter discusses configuration files and boot scripts. 14 First, the general configuration files needed to set up networking are 15 15 presented.</para> 16 16 17 17 <itemizedlist> 18 18 <listitem> … … 23 23 </listitem> 24 24 </itemizedlist> 25 25 26 26 <para>Second, issues that affect the proper setup of devices diescussed.</para> 27 27 … … 39 39 without modification, but a few require additional configuration files 40 40 because they deal with hardware-dependent information.</para> 41 41 42 42 <para>System-V style init scripts are employed in this book because they are 43 43 widely used and relatively simple. For additional options, a hint detailing … … 46 46 <quote>depinit</quote>, <quote>upstart</quote>, or <quote>systemd</quote> 47 47 will also offer additional information.</para> 48 48 49 49 <para>If using an alternative style of init scripts, skip these sections.</para> 50 50 … … 73 73 </listitem> 74 74 </itemizedlist> 75 76 75 76 77 77 <para>Finally, there is a brief introduction to the scripts and configuration 78 78 files used when the user logs into the system.</para> -
chapter07/network.xml
rc0220ed r2ca8941 31 31 configured, this section is optional, although it will never be wrong to do 32 32 it. In many cases (e.g. a laptop with a wireless and a wired interface), 33 accomplishing the configuration in this section is necessary.</para> 33 accomplishing the configuration in this section is necessary.</para> 34 34 35 35 <para>With Udev and modular network drivers, the network interface numbering … … 52 52 <note><para>In some cases such as when MAC addresess have been assigned to 53 53 a network card manually or in a virtual environment such as Xen, 54 the network rules file may not have been generated because addresses 54 the network rules file may not have been generated because addresses 55 55 are not consistently assigned. In these cases, just continue to 56 56 the next section.</para></note> … … 126 126 meaningful to the administrator such as the device name (e.g. eth0). 127 127 Inside this file are attributes to this interface, such as its IP 128 address(es), subnet masks, and so forth. It is necessary that 128 address(es), subnet masks, and so forth. It is necessary that 129 129 the stem of the filename be <emphasis>ifconfig</emphasis>.</para> 130 130 … … 154 154 155 155 <para>The <envar>IFACE</envar> variable defines the interface name, 156 for example, eth0. It is required for all network device configuration 156 for example, eth0. It is required for all network device configuration 157 157 files. </para> 158 158 -
chapter07/profile.xml
rc0220ed r2ca8941 156 156 you will never need 8-bit characters.</para> 157 157 158 <para>UTF-8 based locales are not supported well by many programs. 158 <para>UTF-8 based locales are not supported well by many programs. 159 159 Work is in progress to document and, if possible, fix such problems, see 160 160 <ulink url="&blfs-root;view/svn/introduction/locale-issues.html"/>.</para> -
chapter07/setclock.xml
rc0220ed r2ca8941 52 52 UTC=1 53 53 54 # Set this to any options you might need to give to hwclock, 54 # Set this to any options you might need to give to hwclock, 55 55 # such as machine hardware clock type for Alphas. 56 56 CLOCKPARAMS= -
chapter07/site.xml
rc0220ed r2ca8941 25 25 precedence. </para> 26 26 27 <para><filename>rc.site</filename> also contains parameters that can 27 <para><filename>rc.site</filename> also contains parameters that can 28 28 customize other aspects of the boot process. Setting the IPROMPT variable 29 29 will enable selective running of bootscripts. Other options are described … … 71 71 force all file systems to be checked by creating 72 72 <filename>/forcefsck</filename> or running <command>shutdown</command> with 73 the <parameter>-F</parameter> parameter instead of <parameter>-f</parameter>. 73 the <parameter>-F</parameter> parameter instead of <parameter>-f</parameter>. 74 74 </para> 75 75 76 76 <para>Setting the variable FASTBOOT=y will disable <command>fsck</command> 77 during the boot process until it is removed. This is not recommended 77 during the boot process until it is removed. This is not recommended 78 78 on a permanent basis.</para></listitem> 79 79 -
chapter07/udev.xml
rc0220ed r2ca8941 89 89 class="filesystem">sysfs</systemitem> are available to userspace 90 90 processes and to udevd for processing (including modifications to device 91 nodes).</para> 91 nodes).</para> 92 92 93 93 </sect3> … … 134 134 class="directory">/lib/udev/devices</filename> also provides an easy 135 135 workaround for devices that are not supported by the dynamic device 136 handling infrastructure.</para> 136 handling infrastructure.</para> 137 137 138 138 <para>The <filename>/etc/rc.d/init.d/udev</filename> initscript starts … … 143 143 longer needs to call out to an external binary. Instead 144 144 <command>udevd</command> will listen on a netlink socket for uevents that 145 the kernel raises.</para> 145 the kernel raises.</para> 146 146 147 147 <para>The <command>/etc/rc.d/init.d/udev_retry</command> initscript takes -
chapter07/usage.xml
rc0220ed r2ca8941 51 51 52 52 <para>During the kernel initialization, the first program that is run 53 is either specified on the command line or, by default 53 is either specified on the command line or, by default 54 54 <command>init</command>. This program reads the initialization file 55 55 <filename>/etc/inittab</filename>. Create this file with:</para> -
chapter08/fstab.xml
rc0220ed r2ca8941 104 104 <option>barrier=1</option> mount option to the appropriate entry in 105 105 <filename>/etc/fstab</filename>. To check if the disk drive supports 106 this option, run 106 this option, run 107 107 <ulink url="http://www.linuxfromscratch.org/blfs/view/cvs/general/hdparm.html">hdparm</ulink> 108 108 on the applicable disk drive. For example, if:</para> -
chapter08/grub.xml
rc0220ed r2ca8941 48 48 is the hard drive number and <emphasis>m</emphasis> is the partition 49 49 number. The hard drive number starts from zero, but the partition number 50 starts from one for normal partitions and five for extended partitions. 51 Note that this is different from earlier versions where 50 starts from one for normal partitions and five for extended partitions. 51 Note that this is different from earlier versions where 52 52 both numbers started from zero. For example, partition <filename 53 53 class="partition">sda1</filename> is <emphasis>(hd0,1)</emphasis> to … … 64 64 <title>Setting Up the Configuration</title> 65 65 66 <para>GRUB works by writing data to the first physical track of the 66 <para>GRUB works by writing data to the first physical track of the 67 67 hard disk. This area is not part of any file system. The programs 68 68 there access GRUB modules in the boot partition. The default location … … 91 91 92 92 <para>Install the GRUB files into <filename 93 class="directory">/boot/grub</filename> and set up the boot track:</para> 93 class="directory">/boot/grub</filename> and set up the boot track:</para> 94 94 95 95 <warning> 96 96 <para>The following command will overwrite the current boot loader. Do not 97 97 run the command if this is not desired, for example, if using a third party 98 boot manager to manage the Master Boot Record (MBR).</para> 98 boot manager to manage the Master Boot Record (MBR).</para> 99 99 </warning> 100 100 … … 102 102 103 103 <!-- This does not seem to be true any more 104 <note><para><application>grub-install</application> is a script and calls another 105 program, grub-probe, that may fail with a message "cannot stat `/dev/root'". 104 <note><para><application>grub-install</application> is a script and calls another 105 program, grub-probe, that may fail with a message "cannot stat `/dev/root'". 106 106 If so, create a temporary symbolic link from your root partition to /dev/root:</para> 107 107 … … 137 137 <emphasis>linux</emphasis> line. You will also need to change the 138 138 <emphasis>set root</emphasis> line to point to the boot partition. 139 </para></note> 139 </para></note> 140 140 141 141 <para>GRUB is an extremely powerful program and it provides a tremendous 142 142 number of options for booting from a wide variety of devices, operating 143 systems, and partition types. There are also many options for customization 143 systems, and partition types. There are also many options for customization 144 144 such as graphical splash screens, playing sounds, mouse input, etc. The 145 145 details of these options are beyond the scope of this introduction.</para> … … 148 148 can write a configuration file automatically. It uses a set of scripts in 149 149 /etc/grub.d/ and will destroy any customizations that you make. These scripts 150 are designed primarily for non-source distributions and are not recommended for 151 LFS. If you install a commercial Linux distribution, there is a good chance 152 that this program will be run. Be sure to back up your grub.cfg file.</para></caution> 150 are designed primarily for non-source distributions and are not recommended for 151 LFS. If you install a commercial Linux distribution, there is a good chance 152 that this program will be run. Be sure to back up your grub.cfg file.</para></caution> 153 153 154 154 </sect2> -
chapter08/kernel.xml
rc0220ed r2ca8941 66 66 <note><para>Due to recent changes in <application>udev</application>, be sure to 67 67 select:</para> 68 68 69 69 <screen role="nodump">Device Drivers ---> 70 70 Generic Driver Options ---> … … 135 135 It maps the function entry points of every function in the kernel API, 136 136 as well as the addresses of the kernel data structures for the running 137 kernel. It is used as a resource when investigating kernel problems. 137 kernel. It is used as a resource when investigating kernel problems. 138 138 Issue the following command to install the map file:</para> 139 139 … … 229 229 230 230 <seglistitem> 231 <seg>config-&linux-version;, 231 <seg>config-&linux-version;, 232 232 vmlinux-&linux-version;-lfs-&version;-&linux-version;, and 233 233 System.map-&linux-version;</seg> -
chapter09/reboot.xml
rc0220ed r2ca8941 18 18 environment, you can leave yourself in a much better position to continue on 19 19 once you reboot into your new LFS installation. Here are some suggestions:</para> 20 20 21 21 <itemizedlist> 22 22 … … 50 50 </para></listitem> 51 51 52 <listitem><para>To make fetching files over the internet easier, install 52 <listitem><para>To make fetching files over the internet easier, install 53 53 <ulink url='&blfs-root;/view/svn/basicnet/wget.html'>wget</ulink>. 54 54 </para></listitem> … … 60 60 </para></listitem> 61 61 62 <listitem><para>Finally, a review of the following configuration files 62 <listitem><para>Finally, a review of the following configuration files 63 63 is also appropriate at this point. </para> 64 64 … … 89 89 <screen><userinput>umount -v $LFS/dev/pts 90 90 91 if [ -h $LFS/dev/shm ]; then 91 if [ -h $LFS/dev/shm ]; then 92 92 link=$(readlink $LFS/dev/shm) 93 93 umount -v $LFS/$link … … 95 95 else 96 96 umount -v $LFS/dev/shm 97 fi 97 fi 98 98 99 99 umount -v $LFS/dev -
chapter09/theend.xml
rc0220ed r2ca8941 35 35 DISTRIB_DESCRIPTION="Linux From Scratch" 36 36 EOF</userinput></screen> 37 37 38 38 <para>Be sure to put some sort of customization for the field 39 39 'DISTRIB_CODENAME' to make the system uniquely yours.</para> -
general.ent
rc0220ed r2ca8941 1 <!ENTITY version "SVN-20130 130">2 <!ENTITY releasedate " January 30, 2013">1 <!ENTITY version "SVN-20130211"> 2 <!ENTITY releasedate "February 11, 2013"> 3 3 <!ENTITY copyrightdate "1999-2013"><!-- jhalfs needs a literal dash, not – --> 4 4 <!ENTITY milestone "7.3"> -
prologue/architecture.xml
rc0220ed r2ca8941 26 26 were measured:</para> 27 27 28 <screen><computeroutput>Architecture Build Time Build Size 29 32-bit 198.5 minutes 648 MB 28 <screen><computeroutput>Architecture Build Time Build Size 29 32-bit 198.5 minutes 648 MB 30 30 64-bit 190.6 minutes 709 MB</computeroutput></screen> 31 31 -
prologue/bookinfo.xml
rc0220ed r2ca8941 34 34 35 35 <para>This book is licensed under a <xref linkend="CC"/>.</para> 36 <para>Computer instructions may be extracted from the book under the 36 <para>Computer instructions may be extracted from the book under the 37 37 <xref linkend="MIT"/>.</para> 38 38 -
prologue/foreword.xml
rc0220ed r2ca8941 14 14 back in 1998. I had just installed my first Linux distribution and had 15 15 quickly become intrigued with the whole concept and philosophy behind 16 Linux.</para> 16 Linux.</para> 17 17 18 18 <para>There are always many ways to accomplish a single task. The same can be -
prologue/hostreqs.xml
rc0220ed r2ca8941 158 158 bison --version | head -n1 159 159 if [ -e /usr/bin/yacc ]; 160 then echo "/usr/bin/yacc -> `readlink -f /usr/bin/yacc`"; 160 then echo "/usr/bin/yacc -> `readlink -f /usr/bin/yacc`"; 161 161 else echo "yacc not found"; fi 162 162 … … 167 167 gawk --version | head -n1 168 168 if [ -e /usr/bin/awk ]; 169 then echo "/usr/bin/awk -> `readlink -f /usr/bin/awk`"; 169 then echo "/usr/bin/awk -> `readlink -f /usr/bin/awk`"; 170 170 else echo "awk not found"; fi 171 171 … … 185 185 186 186 echo 'main(){}' > dummy.c && gcc -o dummy dummy.c 187 if [ -x dummy ] 187 if [ -x dummy ] 188 188 then echo "gcc compilation OK"; 189 189 else echo "gcc compilation failed"; fi -
prologue/standards.xml
rc0220ed r2ca8941 14 14 <title/> --> 15 15 16 <para>The structure of LFS follows Linux standards as closely as 16 <para>The structure of LFS follows Linux standards as closely as 17 17 possible. The primary standards are:</para> 18 18 19 19 <itemizedlist> 20 20 <listitem> 21 <para><ulink url="http://pubs.opengroup.org/onlinepubs/9699919799/"> 21 <para><ulink url="http://pubs.opengroup.org/onlinepubs/9699919799/"> 22 22 POSIX.1-2008</ulink>.</para> 23 23 </listitem> 24 24 <listitem> 25 <para><ulink url="http://www.pathname.com/fhs/pub/fhs-2.3.html">Filesystem 25 <para><ulink url="http://www.pathname.com/fhs/pub/fhs-2.3.html">Filesystem 26 26 Hierarchy Standard (FHS)</ulink></para> 27 27 28 28 </listitem> 29 29 <listitem> 30 <para><ulink url="http://refspecs.freestandards.org/LSB_4.0.0/">Linux 30 <para><ulink url="http://refspecs.freestandards.org/LSB_4.0.0/">Linux 31 31 Standard Base (LSB) Core Specification 4.0</ulink></para> 32 32 … … 49 49 certifications tests is possible, but not without many additional packages 50 50 that are beyond the scope of LFS. These additional packages have 51 installation instructions in BLFS. </para> 51 installation instructions in BLFS. </para> 52 52 53 53 <variablelist> … … 103 103 </variablelist> 104 104 105 <variablelist> 105 <variablelist> 106 106 <bridgehead renderas="sect3">Packages supplied by BLFS needed to 107 107 satisfy the LSB Requirements</bridgehead> 108 108 <?dbfo list-presentation="list"?> 109 <?dbhtml list-presentation="table"?> 109 <?dbhtml list-presentation="table"?> 110 110 111 111 <varlistentry> 112 112 <term><emphasis>LSB Core:</emphasis></term> 113 113 <listitem> 114 <para>At, Batch (a part of At), Bc, Cpio, Ed, Fcrontab, Initd-tools, 114 <para>At, Batch (a part of At), Bc, Cpio, Ed, Fcrontab, Initd-tools, 115 115 Lsb_release, PAM, Sendmail (or Postfix or Exim) </para> 116 116 </listitem> … … 156 156 </variablelist> 157 157 158 <variablelist> 159 <bridgehead renderas="sect3">Packages not supplied by LFS or BLFS 158 <variablelist> 159 <bridgehead renderas="sect3">Packages not supplied by LFS or BLFS 160 160 needed to satisfy the LSB Requirements</bridgehead> 161 161 <?dbfo list-presentation="list"?> 162 <?dbhtml list-presentation="table"?> 162 <?dbhtml list-presentation="table"?> 163 163 164 164 <varlistentry> -
prologue/why.xml
rc0220ed r2ca8941 11 11 <title>Rationale for Packages in the Book</title> 12 12 13 <para>As stated earlier, the goal of LFS is to build a complete and usable 14 foundation-level system. This includes all packages needed to replicate 13 <para>As stated earlier, the goal of LFS is to build a complete and usable 14 foundation-level system. This includes all packages needed to replicate 15 15 itself while providing a relatively minimal base from which to customize 16 16 a more complete system based on the choices of the user. This does not … … 50 50 <para>Binutils</para> 51 51 52 <para>This package contains a linker, an assembler, and other 52 <para>This package contains a linker, an assembler, and other 53 53 tools for handling object files. The programs in this package are 54 54 needed to compile most of the packages in an LFS system and beyond.</para> … … 65 65 <para>Bzip2</para> 66 66 67 <para>This package contains programs for compressing and decompressing 67 <para>This package contains programs for compressing and decompressing 68 68 files. It is required to decompress many LFS packages.</para> 69 69 </listitem> … … 79 79 <para>Coreutils</para> 80 80 81 <para>This package contains a number of essential programs for viewing 81 <para>This package contains a number of essential programs for viewing 82 82 and manipulating files and directories. These programs are needed for 83 83 command line file management, and are necessary for the installation … … 95 95 <para>Diffutils</para> 96 96 97 <para>This package contains programs that show the differences 97 <para>This package contains programs that show the differences 98 98 between files or directories. These programs can be used to create 99 99 patches, and are also used in many packages' build procedures.</para> … … 103 103 <para>Expect</para> 104 104 105 <para>This package contains a program for carrying out scripted 105 <para>This package contains a program for carrying out scripted 106 106 dialogues with other interactive programs. It is commonly used 107 for testing other packages. It is only installed in the temporary 107 for testing other packages. It is only installed in the temporary 108 108 toolchain.</para> 109 109 </listitem> … … 120 120 <para>File</para> 121 121 122 <para>This package contains a utility for determining the type of a 122 <para>This package contains a utility for determining the type of a 123 123 given file or files. A few packages need it to build.</para> 124 124 </listitem> … … 134 134 <para>Flex</para> 135 135 136 <para>This package contains a utility for generating programs that 137 recognize patterns in text. It is the GNU version of the lex 138 (lexical analyzer) program. It is required to build several 136 <para>This package contains a utility for generating programs that 137 recognize patterns in text. It is the GNU version of the lex 138 (lexical analyzer) program. It is required to build several 139 139 LFS packages.</para> 140 140 </listitem> … … 151 151 <para>Gcc</para> 152 152 153 <para>This package is the Gnu Compiler Collection. It contains the 154 C and C++ compilers as well as several others not built by LFS. 153 <para>This package is the Gnu Compiler Collection. It contains the 154 C and C++ compilers as well as several others not built by LFS. 155 155 </para> 156 156 </listitem> … … 166 166 <para>Gettext</para> 167 167 168 <para>This package contains utilities and libraries for 168 <para>This package contains utilities and libraries for 169 169 internationalization and localization of numerous packages.</para> 170 170 </listitem> … … 201 201 <para>GRUB</para> 202 202 203 <para>This package is the Grand Unified Boot Loader. It is one 203 <para>This package is the Grand Unified Boot Loader. It is one 204 204 of several boot loaders available, but is the most flexible. 205 205 </para> … … 209 209 <para>Gzip</para> 210 210 211 <para>This package contains programs for compressing and 211 <para>This package contains programs for compressing and 212 212 decompressing files. It is needed to decompress many packages in LFS 213 213 and beyond.</para> … … 224 224 <para>Inetutils</para> 225 225 226 <para>This package contains programs for basic network 226 <para>This package contains programs for basic network 227 227 administration.</para> 228 228 </listitem> … … 261 261 <para>Libtool</para> 262 262 263 <para>This package contains the GNU generic library support 264 script. It wraps the complexity of using shared libraries in a 263 <para>This package contains the GNU generic library support 264 script. It wraps the complexity of using shared libraries in a 265 265 consistent, portable interface. It is needed by the test 266 266 suites in other LFS packages.</para> … … 314 314 <para>MPFR</para> 315 315 316 <para>This package contains functions for multiple precision 316 <para>This package contains functions for multiple precision 317 317 arithmetic. It is required by Gcc.</para> 318 318 </listitem> … … 321 321 <para>Ncurses</para> 322 322 323 <para>This package contains libraries for terminal-independent 324 handling of character screens. It is often used to provide 323 <para>This package contains libraries for terminal-independent 324 handling of character screens. It is often used to provide 325 325 cursor control for a menuing system. It is needed by a number of 326 326 packages in LFS.</para> … … 331 331 332 332 <para>This package contains a program for modifying or creating files by 333 applying a <emphasis>patch</emphasis> file typically created 333 applying a <emphasis>patch</emphasis> file typically created 334 334 by the <application>diff</application> program. It is needed by 335 335 the build procedure for several LFS packages.</para> … … 356 356 <para>Pkg-config</para> 357 357 358 <para>This package provides a program to return meta-data about an 358 <para>This package provides a program to return meta-data about an 359 359 installed library or package.</para> 360 360 </listitem> … … 378 378 <para>Psmisc</para> 379 379 380 <para>This package contains programs for displaying information 380 <para>This package contains programs for displaying information 381 381 about running processes. These programs are useful for system 382 382 administration.</para> … … 386 386 <para>Readline</para> 387 387 388 <para>This package is a set of libraries that offers command-line 388 <para>This package is a set of libraries that offers command-line 389 389 editing and history capabilities. It is used by Bash.</para> 390 390 </listitem> … … 393 393 <para>Sed</para> 394 394 395 <para>This package allows editing of text without opening it in a 396 text editor. It is also needed by most LFS packages' configure 395 <para>This package allows editing of text without opening it in a 396 text editor. It is also needed by most LFS packages' configure 397 397 scripts.</para> 398 398 </listitem> … … 401 401 <para>Shadow</para> 402 402 403 <para>This package contains programs for handling passwords 403 <para>This package contains programs for handling passwords 404 404 in a secure way.</para> 405 405 </listitem> … … 408 408 <para>Sysklogd</para> 409 409 410 <para>This package contains programs for logging system messages, 411 such as those given by the kernel or daemon processes when unusual 410 <para>This package contains programs for logging system messages, 411 such as those given by the kernel or daemon processes when unusual 412 412 events occur.</para> 413 413 </listitem> … … 432 432 433 433 <para>This package contains the Tool Command Language used 434 in many test suites in LFS packages. It is only installed in 434 in many test suites in LFS packages. It is only installed in 435 435 the temporary toolchain.</para> 436 436 </listitem> … … 439 439 <para>Texinfo</para> 440 440 441 <para>This package contains programs for reading, writing, and 442 converting info pages. It is used in the installation 441 <para>This package contains programs for reading, writing, and 442 converting info pages. It is used in the installation 443 443 procedures of many LFS packages.</para> 444 444 </listitem> … … 447 447 <para>Udev</para> 448 448 449 <para>This package contains programs for dynamic creation of 449 <para>This package contains programs for dynamic creation of 450 450 device nodes. It is an alternative to creating thousands of 451 451 static devices in the /dev directory.</para> … … 455 455 <para>Util-linux</para> 456 456 457 <para>This package contains miscellaneous utility programs. 458 Among them are utilities for handling file systems, consoles, 457 <para>This package contains miscellaneous utility programs. 458 Among them are utilities for handling file systems, consoles, 459 459 partitions, and messages.</para> 460 460 </listitem> … … 472 472 <para>XZ Utils</para> 473 473 474 <para>This package contains programs for compressing and decompressing 474 <para>This package contains programs for compressing and decompressing 475 475 files. It provides the highest compression generally available 476 476 and is useful for decompressing packages XZ or LZMA format.</para> … … 480 480 <para>Zlib</para> 481 481 482 <para>This package contains compression and decompression routines 482 <para>This package contains compression and decompression routines 483 483 used by some programs.</para> 484 484 </listitem>
Note:
See TracChangeset
for help on using the changeset viewer.