Changes in / [8e6babe:c6f58f47]
- Files:
-
- 56 edited
Legend:
- Unmodified
- Added
- Removed
-
chapter07/chapter07.xml
r8e6babe rc6f58f47 25 25 <xi:include xmlns:xi="http://www.w3.org/2001/XInclude" href="texinfo.xml"/> 26 26 <xi:include xmlns:xi="http://www.w3.org/2001/XInclude" href="util-linux.xml"/> 27 27 28 28 <!-- 29 29 <xi:include xmlns:xi="http://www.w3.org/2001/XInclude" href="tcl.xml"/> -
chapter07/cleanup.xml
r8e6babe rc6f58f47 10 10 11 11 <title>Cleaning up and Saving the Temporary System</title> 12 12 13 13 <sect2> 14 14 <title>Cleaning</title> … … 27 27 28 28 <para> 29 The current system size is now about 3 GB, however 29 The current system size is now about 3 GB, however 30 30 the /tools directory is no longer needed. It uses about 31 31 1 GB of disk space. Delete it now: … … 54 54 linkend="chapter-building-system"/>, the temporary files will be 55 55 overwritten. So it may be a good idea to do a backup of the current 56 system as described below. 56 system as described below. 57 57 </para></note> 58 58 59 59 <para> 60 60 The following steps are performed from outside the chroot … … 80 80 Take extra care about the commands you're going to run as mistakes 81 81 here can modify your host system. Be aware that the 82 environment variable <envar>LFS</envar> 83 is set for user <systemitem class="username">lfs</systemitem> by default 84 but may <emphasis>not</emphasis> be set for 82 environment variable <envar>LFS</envar> 83 is set for user <systemitem class="username">lfs</systemitem> by default 84 but may <emphasis>not</emphasis> be set for 85 85 <systemitem class="username">root</systemitem>. 86 86 </para> 87 87 <para> 88 Whenever commands are to be executed by <systemitem class="username">root</systemitem>, 88 Whenever commands are to be executed by <systemitem class="username">root</systemitem>, 89 89 make sure you have set <envar>LFS</envar>. 90 90 </para> … … 106 106 107 107 <para> 108 <<<<<<< HEAD 109 Make sure you have at least 1 GB free disk space (the source tarballs 110 will be included in the backup archive) in the home directory of user 111 <systemitem class="username">root</systemitem>. 112 ======= 108 113 Note that the instructions below specify the home directory of the host 109 114 system's <systemitem class="username">root</systemitem> user, which is 110 115 typically found on the root filesystem. 116 >>>>>>> 8e6babecd0d75542a01eedfde32556879733f842 111 117 </para> 112 118 113 119 <para> 114 120 Replace <envar>$HOME</envar> by a directory of your choice if you 115 do not want to have the backup stored in <systemitem 121 do not want to have the backup stored in <systemitem 116 122 class="username">root</systemitem>'s home directory. 117 123 </para> … … 126 132 long time (over 10 minutes) even on a resonably fast system. 127 133 </para> 134 <<<<<<< HEAD 135 136 <para> 137 Also, ensure the <envar>LFS</envar> environment variable is set 138 for the root user. 139 </para> 140 ======= 141 >>>>>>> 8e6babecd0d75542a01eedfde32556879733f842 128 142 </note> 129 143 130 <screen role="nodump" revision="sysv"><userinput>cd $LFS 144 <screen role="nodump" revision="sysv"><userinput>cd $LFS 131 145 tar -cJpf $HOME/lfs-temp-tools-&version;.tar.xz .</userinput></screen> 132 146 133 <screen role="nodump" revision="systemd"><userinput>cd $LFS 147 <screen role="nodump" revision="systemd"><userinput>cd $LFS 134 148 tar -cJpf $HOME/lfs-temp-tools-&versiond;.tar.xz .</userinput></screen> 135 149 150 <<<<<<< HEAD 151 <para> 152 Replace <envar>$HOME</envar> by a directory of your choice if you 153 do not want to have the backup stored in <systemitem 154 class="username">root</systemitem>'s home directory. 155 </para> 156 ======= 157 >>>>>>> 8e6babecd0d75542a01eedfde32556879733f842 136 158 </sect2> 137 159 … … 142 164 In case some mistakes have been made and you need to start over, you can 143 165 use this backup to restore the system and save some recovery time. 144 Since the sources are located under 166 Since the sources are located under 145 167 <filename class="directory">$LFS</filename>, they are included in the 146 168 backup archive as well, so they do not need to be downloaded again. After … … 153 175 154 176 <warning><para>The following commands are extremly dangerous. If 155 you run <command>rm -rf ./*</command> as the root user and you 156 do not change to the $LFS directory or the <envar>LFS</envar> 157 environment variable is not set for the root user, it will destroy 177 you run <command>rm -rf ./*</command> as the root user and you 178 do not change to the $LFS directory or the <envar>LFS</envar> 179 environment variable is not set for the root user, it will destroy 158 180 your entire host system. YOU ARE WARNED.</para></warning> 159 181 160 <screen role="nodump" revision="sysv"><computeroutput>cd $LFS 161 rm -rf ./* 182 <screen role="nodump" revision="sysv"><computeroutput>cd $LFS 183 rm -rf ./* 162 184 tar -xpf $HOME/lfs-temp-tools-&version;.tar.xz</computeroutput></screen> 163 185 164 <screen role="nodump" revision="systemd"><computeroutput>cd $LFS 165 rm -rf ./* 186 <screen role="nodump" revision="systemd"><computeroutput>cd $LFS 187 rm -rf ./* 166 188 tar -xpf $HOME/lfs-temp-tools-&versiond;.tar.xz</computeroutput></screen> 167 189 … … 181 203 </para> 182 204 </important> 183 205 184 206 </sect2> 185 207 -
chapter07/kernfs.xml
r8e6babe rc6f58f47 105 105 <para>In some host systems, <filename>/dev/shm</filename> is a 106 106 symbolic link to <filename class="directory">/run/shm</filename>. 107 The /run tmpfs was mounted above so in this case only a 107 The /run tmpfs was mounted above so in this case only a 108 108 directory needs to be created.</para> 109 109 -
chapter07/perl.xml
r8e6babe rc6f58f47 61 61 <term><parameter>-des</parameter></term> 62 62 <listitem> 63 <para>This is a combination of three options: -d uses defaults for 63 <para>This is a combination of three options: -d uses defaults for 64 64 all items; -e ensures completion of all tasks; -s silences 65 65 non-essential output.</para> -
chapter08/attr.xml
r8e6babe rc6f58f47 54 54 55 55 <para>The tests need to be run on a filesystem that supports extended 56 attributes such as the ext2, ext3, or ext4 filesystems. 56 attributes such as the ext2, ext3, or ext4 filesystems. 57 57 To test the results, issue:</para> 58 58 -
chapter08/automake.xml
r8e6babe rc6f58f47 60 60 <screen><userinput remap="test">make -j4 check</userinput></screen> 61 61 <!-- 62 <para>The tests t/subobj.sh, t/deprecated-acinit.sh, and t/init.sh are known to 62 <para>The tests t/subobj.sh, t/deprecated-acinit.sh, and t/init.sh are known to 63 63 fail in the LFS environment.</para> 64 64 --> -
chapter08/bc.xml
r8e6babe rc6f58f47 24 24 <title/> 25 25 26 <para>The Bc package contains an arbitrary precision numeric processing 26 <para>The Bc package contains an arbitrary precision numeric processing 27 27 language.</para> 28 28 -
chapter08/binutils.xml
r8e6babe rc6f58f47 75 75 <screen><userinput remap="pre">sed -i '/@\tincremental_copy/d' gold/testsuite/Makefile.in</userinput></screen> 76 76 --> 77 <para>The Binutils documentation recommends building Binutils 77 <para>The Binutils documentation recommends building Binutils 78 78 in a dedicated build directory:</para> 79 79 … … 298 298 <term><command>ld.gold</command></term> 299 299 <listitem> 300 <para>A cut down version of ld that only supports the 300 <para>A cut down version of ld that only supports the 301 301 elf object file format</para> 302 302 <indexterm zone="ch-system-binutils ld.gold"> -
chapter08/chapter08.xml
r8e6babe rc6f58f47 67 67 <xi:include xmlns:xi="http://www.w3.org/2001/XInclude" href="meson.xml"/> 68 68 <xi:include xmlns:xi="http://www.w3.org/2001/XInclude" href="coreutils.xml"/> 69 <xi:include xmlns:xi="http://www.w3.org/2001/XInclude" href="check.xml"/> 69 <xi:include xmlns:xi="http://www.w3.org/2001/XInclude" href="check.xml"/> 70 70 <xi:include xmlns:xi="http://www.w3.org/2001/XInclude" href="diffutils.xml"/> 71 71 <xi:include xmlns:xi="http://www.w3.org/2001/XInclude" href="gawk.xml"/> -
chapter08/coreutils.xml
r8e6babe rc6f58f47 89 89 <term><envar>FORCE_UNSAFE_CONFIGURE=1</envar></term> 90 90 <listitem> 91 <para>This environment variable allows the package to be 91 <para>This environment variable allows the package to be 92 92 built as the <systemitem class="username">root</systemitem> user. 93 93 </para> -
chapter08/dbus.xml
r8e6babe rc6f58f47 115 115 <seglistitem> 116 116 <seg>dbus-cleanup-sockets, dbus-daemon, dbus-launch, dbus-monitor, 117 dbus-run-session, dbus-send, dbus-test-tool, 117 dbus-run-session, dbus-send, dbus-test-tool, 118 118 dbus-update-activation-environment, and dbus-uuidgen</seg> 119 119 <seg>libdbus-1.{a,so}</seg> -
chapter08/eudev.xml
r8e6babe rc6f58f47 25 25 26 26 <para>The Eudev package contains programs for dynamic creation of device 27 nodes.</para> 27 nodes.</para> 28 28 29 29 <segmentedlist> … … 77 77 <screen><userinput remap="install">make install</userinput></screen> 78 78 79 <para>Install some custom rules and support files useful in an LFS 79 <para>Install some custom rules and support files useful in an LFS 80 80 environment:</para> 81 81 -
chapter08/expect.xml
r8e6babe rc6f58f47 63 63 <term><parameter>--with-tcl=/usr/lib</parameter></term> 64 64 <listitem> 65 <para>This parameter is needed to tell 65 <para>This parameter is needed to tell 66 66 <command>configure</command> where the 67 67 <command>tclConfig.sh</command> script is located.</para> -
chapter08/gcc.xml
r8e6babe rc6f58f47 116 116 <para>Test the results as a non-privileged user, but do not stop at errors:</para> 117 117 118 <screen><userinput remap="test">chown -Rv tester . 118 <screen><userinput remap="test">chown -Rv tester . 119 119 su tester -c "PATH=$PATH make -k check"</userinput></screen> 120 120 … … 186 186 --> 187 187 <para>Add a compatibility symlink to enable building programs with 188 Link Time Optimization (LTO):</para> 188 Link Time Optimization (LTO):</para> 189 189 190 190 <screen><userinput remap="install">ln -sfv ../../libexec/gcc/$(gcc -dumpmachine)/&gcc-version;/liblto_plugin.so \ … … 352 352 and libubsan.{a,so}</seg> 353 353 354 <seg>/usr/include/c++, /usr/lib/gcc, /usr/libexec/gcc, and 354 <seg>/usr/include/c++, /usr/lib/gcc, /usr/libexec/gcc, and 355 355 /usr/share/gcc-&gcc-version;</seg> 356 356 </seglistitem> -
chapter08/glibc.xml
r8e6babe rc6f58f47 47 47 48 48 <screen><userinput remap="pre">sed -e '/NOTIFY_REMOVED)/s/)/ \&\& data.attr != NULL)/' \ 49 -i sysdeps/unix/sysv/linux/mq_notify.c</userinput></screen> 49 -i sysdeps/unix/sysv/linux/mq_notify.c</userinput></screen> 50 50 51 51 <para>Some of the Glibc programs use the non-FHS compliant … … 56 56 <screen><userinput remap="pre">patch -Np1 -i ../&glibc-fhs-patch;</userinput></screen> 57 57 58 <para>The Glibc documentation recommends building Glibc 58 <para>The Glibc documentation recommends building Glibc 59 59 in a dedicated build directory:</para> 60 60 … … 83 83 <term><parameter>--disable-werror</parameter></term> 84 84 <listitem> 85 <para>This option disables the -Werror option passed to 85 <para>This option disables the -Werror option passed to 86 86 GCC. This is necessary for running the test suite.</para> 87 87 </listitem> … … 101 101 <term><parameter>--enable-stack-protector=strong</parameter></term> 102 102 <listitem> 103 <para>This option increases system security by adding 103 <para>This option increases system security by adding 104 104 extra code to check for buffer overflows, such as stack 105 105 smashing attacks.</para> … … 151 151 <para>You may see some test failures. The Glibc test suite is 152 152 somewhat dependent on the host system. A few failures out of 153 over 4200 tests can generally be ignored. This is a list of the 153 over 4200 tests can generally be ignored. This is a list of the 154 154 most common issues seen for recent versions of LFS:</para> 155 155 … … 157 157 158 158 <listitem> 159 <para><emphasis>io/tst-lchmod</emphasis> 159 <para><emphasis>io/tst-lchmod</emphasis> 160 160 is known to fail in the LFS chroot environment.</para> 161 161 </listitem> 162 162 163 163 <listitem> 164 <para><emphasis>misc/tst-ttyname</emphasis> 164 <para><emphasis>misc/tst-ttyname</emphasis> 165 165 is known to fail in the LFS chroot environment.</para> 166 166 </listitem> … … 174 174 <para>The <emphasis>rt/tst-cputimer{1,2,3}</emphasis> tests depend on 175 175 the host system kernel. Kernels 4.14.91–4.14.96, 176 4.19.13–4.19.18, and 4.20.0–4.20.5 are known to 176 4.19.13–4.19.18, and 4.20.0–4.20.5 are known to 177 177 cause these tests to fail. 178 178 </para> … … 214 214 mkdir -pv /var/cache/nscd</userinput></screen> 215 215 216 <para revision="systemd">Install the systemd support files for 216 <para revision="systemd">Install the systemd support files for 217 217 <command>nscd</command>:</para> 218 218 … … 288 288 when you need them. For instance, the following two locales are 289 289 needed for some tests later in this chapter:</para> 290 290 291 291 <screen role="nodump"><userinput remap="locale-full">localedef -i POSIX -f UTF-8 C.UTF-8 2> /dev/null || true 292 292 localedef -i ja_JP -f SHIFT_JIS ja_JP.SIJS 2> /dev/null || true</userinput></screen> 293 293 294 <note><para>Glibc now uses libidn2 when resolving internationalized 294 <note><para>Glibc now uses libidn2 when resolving internationalized 295 295 domain names. This is a run time dependency. If this capability 296 is needed, the instructions for installing libidn2 are in the 296 is needed, the instructions for installing libidn2 are in the 297 297 <ulink url="&blfs-book;general/libidn2.html">BLFS libidn2 page</ulink>. 298 298 </para></note> … … 480 480 <seglistitem> 481 481 <seg>catchsegv, gencat, getconf, getent, iconv, iconvconfig, ldconfig, 482 ldd, lddlibc4, locale, localedef, makedb, mtrace, nscd, 482 ldd, lddlibc4, locale, localedef, makedb, mtrace, nscd, 483 483 pcprofiledump, pldd, sln, sotruss, sprof, tzselect, xtrace, 484 484 zdump, and zic</seg> … … 950 950 many different Unix utilities. These functions are now in 951 951 <filename class="libraryfile">libc</filename></para> 952 953 952 <indexterm zone="ch-system-glibc libutil"> 954 953 <primary sortas="c-libutil">libutil</primary> -
chapter08/gmp.xml
r8e6babe rc6f58f47 54 54 <para>The default settings of GMP produce libraries optimized for 55 55 the host processor. If libraries suitable for processors less 56 capable than the host's CPU are desired, generic libraries can be 56 capable than the host's CPU are desired, generic libraries can be 57 57 created by running the following: 58 58 … … 101 101 102 102 <screen><userinput remap="test">make check 2>&1 | tee gmp-check-log</userinput></screen> 103 103 104 104 <caution><para>The code in gmp is highly optimized for the processor where 105 105 it is built. Occasionally, the code that detects the processor misidentifies -
chapter08/grub.xml
r8e6babe rc6f58f47 107 107 108 108 <seg>grub-bios-setup, grub-editenv, grub-file, grub-fstest, 109 grub-glue-efi, grub-install, grub-kbdcomp, grub-macbless, 109 grub-glue-efi, grub-install, grub-kbdcomp, grub-macbless, 110 110 grub-menulst2cfg, grub-mkconfig, 111 111 grub-mkimage, grub-mklayout, grub-mknetdir, 112 112 grub-mkpasswd-pbkdf2, grub-mkrelpath, grub-mkrescue, grub-mkstandalone, 113 grub-ofpathname, grub-probe, grub-reboot, grub-render-label, 113 grub-ofpathname, grub-probe, grub-reboot, grub-render-label, 114 114 grub-script-check, 115 115 grub-set-default, grub-sparc64-setup, and grub-syslinux2cfg</seg> -
chapter08/gzip.xml
r8e6babe rc6f58f47 67 67 68 68 <seglistitem> 69 <seg>gunzip, gzexe, gzip, uncompress (hard link with gunzip), zcat, zcmp, 69 <seg>gunzip, gzexe, gzip, uncompress (hard link with gunzip), zcat, zcmp, 70 70 zdiff, zegrep, zfgrep, zforce, zgrep, zless, zmore, and znew</seg> 71 71 </seglistitem> -
chapter08/inetutils.xml
r8e6babe rc6f58f47 129 129 130 130 <seglistitem> 131 <seg>dnsdomainname, ftp, ifconfig, hostname, ping, ping6, 131 <seg>dnsdomainname, ftp, ifconfig, hostname, ping, ping6, 132 132 talk, telnet, tftp, and traceroute</seg> 133 133 </seglistitem> -
chapter08/iproute2.xml
r8e6babe rc6f58f47 44 44 <para>The <command>arpd</command> program included in this package will not 45 45 be built since it is dependent on Berkeley DB, which is not installed in 46 LFS. However, a directory for <command>arpd</command> and a man page will still 47 be installed. Prevent this by running the commands below. 46 LFS. However, a directory for <command>arpd</command> and a man page will still 47 be installed. Prevent this by running the commands below. 48 48 If the <command>arpd</command> binary is needed, 49 49 instructions for compiling Berkeley DB can be found in the BLFS Book at … … 54 54 rm -fv man/man8/arpd.8</userinput></screen> 55 55 56 <para>It is also necessary to disable building two modules that 56 <para>It is also necessary to disable building two modules that 57 57 require <ulink url="&blfs-book;postlfs/iptables.html"/>.</para> 58 58 -
chapter08/kbd.xml
r8e6babe rc6f58f47 117 117 setfont, setkeycodes, setleds, setmetamode, setvtrgb, 118 118 showconsolefont, showkey, unicode_start, and unicode_stop</seg> 119 <seg>/usr/share/consolefonts, /usr/share/consoletrans, /usr/share/keymaps, 119 <seg>/usr/share/consolefonts, /usr/share/consoletrans, /usr/share/keymaps, 120 120 /usr/share/doc/kbd-&kbd-version;, and /usr/share/unimaps</seg> 121 121 </seglistitem> -
chapter08/kmod.xml
r8e6babe rc6f58f47 92 92 93 93 <seglistitem> 94 <seg>depmod (link to kmod), insmod (link to kmod), kmod, 94 <seg>depmod (link to kmod), insmod (link to kmod), kmod, 95 95 lsmod (link to kmod), modinfo (link to kmod), modprobe (link to kmod), 96 96 and rmmod (link to kmod)</seg> -
chapter08/libelf.xml
r8e6babe rc6f58f47 56 56 57 57 <para>To test the results, issue:</para> 58 58 59 59 <screen><userinput remap="test">make check</userinput></screen> 60 60 -
chapter08/libffi.xml
r8e6babe rc6f58f47 67 67 is not specified, the system is guessed and the code generated 68 68 may not be correct for some systems. If the generated code 69 will be copied from the native system to a less capable 70 system, use the less capable system as a parameter. For details 71 about alternative system types, see <ulink 69 will be copied from the native system to a less capable 70 system, use the less capable system as a parameter. For details 71 about alternative system types, see <ulink 72 72 url='https://gcc.gnu.org/onlinedocs/gcc-&gcc-version;/gcc/x86-Options.html'> 73 73 the x86 options in the GCC manual</ulink>.</para> -
chapter08/libtool.xml
r8e6babe rc6f58f47 62 62 63 63 <para>Five tests are known to fail in the LFS build environment due 64 to a circular dependency, but all tests pass if rechecked after 64 to a circular dependency, but all tests pass if rechecked after 65 65 automake is installed.</para> 66 66 -
chapter08/man-db.xml
r8e6babe rc6f58f47 101 101 <term><parameter>--with-systemd...</parameter></term> 102 102 <listitem> 103 <para>These parameters prevent installing unneeded systemd 103 <para>These parameters prevent installing unneeded systemd 104 104 directories and files.</para> 105 105 </listitem> -
chapter08/meson.xml
r8e6babe rc6f58f47 70 70 <variablelist> 71 71 <title>The meaning of the install parameters:</title> 72 72 73 73 <varlistentry> 74 74 <term><parameter>--root=dest</parameter></term> -
chapter08/ncurses.xml
r8e6babe rc6f58f47 133 133 libraries since no package installed by compiling from sources would link 134 134 against them at runtime. However, the only known binary-only 135 applications that link against non-wide-character Ncurses libraries 135 applications that link against non-wide-character Ncurses libraries 136 136 require version 5. If you must have such libraries because of some binary-only 137 137 application or to be compliant with LSB, build the package again with the … … 144 144 --without-debug \ 145 145 --without-cxx-binding \ 146 --with-abi-version=5 146 --with-abi-version=5 147 147 make sources libs 148 148 cp -av lib/lib*.so.5* /usr/lib</userinput></screen> … … 161 161 <seglistitem> 162 162 <seg> 163 captoinfo (link to tic), 164 clear, 165 infocmp, 163 captoinfo (link to tic), 164 clear, 165 infocmp, 166 166 infotocap (link to tic), 167 ncursesw6-config, 168 reset (link to tset), 169 tabs, 170 tic, 171 toe, 172 tput, and 167 ncursesw6-config, 168 reset (link to tset), 169 tabs, 170 tic, 171 toe, 172 tput, and 173 173 tset 174 174 </seg> 175 175 <seg> 176 176 libcursesw.so (symlink and linker script to libncursesw.so), 177 libformw.so, 178 libmenuw.so, 177 libformw.so, 178 libmenuw.so, 179 179 libncursesw.so, 180 180 libpanelw.so, and their non-wide-character counterparts without "w" 181 181 in the library names.</seg> 182 182 <seg> 183 /usr/share/tabset, 183 /usr/share/tabset, 184 184 /usr/share/terminfo, and 185 185 /usr/share/doc/ncurses-&ncurses-version; -
chapter08/ninja.xml
r8e6babe rc6f58f47 51 51 52 52 <para>When run, ninja normally runs a maximum number of processes 53 in parallel. By default this is the number of cores on the system 53 in parallel. By default this is the number of cores on the system 54 54 plus two. In some cases this can overheat a CPU or run a system out 55 55 of memory. If run from the command line, passing a -jN parameter … … 58 58 59 59 <para>Using the <emphasis>optional</emphasis> procedure below allows a user to 60 limit the number of parallel processes via an environment variable, 60 limit the number of parallel processes via an environment variable, 61 61 NINJAJOBS. <emphasis role="bold">For example</emphasis>, setting: 62 62 … … 65 65 will limit ninja to four parallel processes.</para> 66 66 67 <para>If desired, add the capability to use the environment variable 67 <para>If desired, add the capability to use the environment variable 68 68 NINJAJOBS by running:</para> 69 69 -
chapter08/perl.xml
r8e6babe rc6f58f47 47 47 <screen><userinput remap="pre">patch -Np1 -i ../&perl-fix-patch;</userinput></screen> 48 48 49 <para>This version of Perl now builds the Compress::Raw::Zlib and 49 <para>This version of Perl now builds the Compress::Raw::Zlib and 50 50 Compress::Raw::BZip2 modules. By 51 51 default Perl will use an internal copy of the sources for the build. … … 90 90 <term><parameter>-Dpager="/usr/bin/less -isR"</parameter></term> 91 91 <listitem> 92 <para>This ensures that <userinput>less</userinput> is used instead 92 <para>This ensures that <userinput>less</userinput> is used instead 93 93 of <userinput>more</userinput>.</para> 94 94 </listitem> -
chapter08/procps.xml
r8e6babe rc6f58f47 29 29 <note> 30 30 <para>This package extracts to the directory 31 <filename class="directory">procps-3.3.17</filename>, 31 <filename class="directory">procps-3.3.17</filename>, 32 32 not the expected 33 33 <filename class="directory">procps-ng-3.3.17</filename>.</para> … … 94 94 <para>Five tests related to pkill are known to fail due to a problem 95 95 with tests that were not updated.</para> 96 96 97 97 <para>Install the package:</para> 98 98 -
chapter08/python.xml
r8e6babe rc6f58f47 104 104 <para>If desired, install the preformatted documentation:</para> 105 105 106 <screen><userinput remap="install">install -v -dm755 /usr/share/doc/python-&python-version;/html 106 <screen><userinput remap="install">install -v -dm755 /usr/share/doc/python-&python-version;/html 107 107 108 108 tar --strip-components=1 \ … … 118 118 <term><option>--no-same-owner</option> and <option>--no-same-permissions</option></term> 119 119 <listitem> 120 <para>Ensure the installed files have the correct ownership and 120 <para>Ensure the installed files have the correct ownership and 121 121 permissions. Without these options, using <application>tar</application> 122 will install the package files with the upstream creator's values. 122 will install the package files with the upstream creator's values. 123 123 </para> 124 124 </listitem> … … 145 145 </seg> 146 146 <seg> 147 /usr/include/python&python-minor;, 147 /usr/include/python&python-minor;, 148 148 /usr/lib/python3, and 149 149 /usr/share/doc/python-&python-version; … … 163 163 is a <application>Python</application> program that reads 164 164 <application>Python 2.x</application> source code and applies a 165 series of fixes to transform it into 165 series of fixes to transform it into 166 166 valid <application>Python 3.x</application> code 167 167 </para> -
chapter08/revisedchroot.xml
r8e6babe rc6f58f47 16 16 17 17 <para>Now log out and reenter the chroot environment with an updated 18 chroot command. From now on, use this updated chroot command any time 18 chroot command. From now on, use this updated chroot command any time 19 19 you need to reenter the chroot environment after exiting:</para> 20 20 … … 56 56 <screen><userinput>find /usr -depth -name $(uname -m)-lfs-linux-gnu\* | xargs rm -rf</userinput></screen> 57 57 58 <para>Finally, remove the temporary 'tester' user account created at the 58 <para>Finally, remove the temporary 'tester' user account created at the 59 59 beginning of the previous chapter.</para> 60 60 -
chapter08/stripping.xml
r8e6babe rc6f58f47 11 11 <title>Stripping</title> 12 12 13 <para>This section is optional. If the intended user is not a 13 <para>This section is optional. If the intended user is not a 14 14 programmer and does not plan to do 15 15 any debugging on the system software, the system size can be decreased … … 25 25 26 26 <para>The debugging symbols for selected libraries are placed 27 in separate files. This debugging information is needed if running 28 regression tests that use <ulink 29 url='&blfs-book;/general/valgrind.html'>valgrind</ulink> or <ulink 27 in separate files. This debugging information is needed if running 28 regression tests that use <ulink 29 url='&blfs-book;/general/valgrind.html'>valgrind</ulink> or <ulink 30 30 url='&blfs-book;/general/gdb.html'>gdb</ulink> later in BLFS. 31 31 </para> … … 42 42 43 43 <note><para>The ELF loader's name is ld-linux-x86-64.so.2 on 64-bit systems 44 and ld-linux.so.2 on 32-bit systems. The contruct below selects the 44 and ld-linux.so.2 on 32-bit systems. The contruct below selects the 45 45 correct name for the current architecture.</para></note> 46 46 … … 51 51 libc.so.6 52 52 libthread_db.so.1 53 libquadmath.so.&libquadmath-version; 53 libquadmath.so.&libquadmath-version; 54 54 libstdc++.so.&libstdcpp-version; 55 libitm.so.&libitm-version; 56 libatomic.so.&libatomic-version;" 55 libitm.so.&libitm-version; 56 libatomic.so.&libatomic-version;" 57 57 58 58 cd /usr/lib … … 94 94 $(find /usr/{bin,sbin,libexec} -type f); do 95 95 case "$online_usrbin $online_usrlib $save_usrlib" in 96 *$(basename $i)* ) 96 *$(basename $i)* ) 97 97 ;; 98 * ) strip --strip-unneeded $i 98 * ) strip --strip-unneeded $i 99 99 ;; 100 100 esac -
chapter08/systemd.xml
r8e6babe rc6f58f47 206 206 systemd-networkd:</para> 207 207 <!-- Observed halting startup with dhcpcd handling the primary NIC --> 208 208 209 209 <screen><userinput remap="adjust">systemctl disable systemd-time-wait-sync.service</userinput></screen> 210 210 … … 214 214 <para>Prevent systemd from resetting the maximum PID value which causes 215 215 some problems with packages and units in BLFS:</para> 216 216 217 217 <screen><userinput remap="adjust">rm -f /usr/lib/sysctl.d/50-pid-max.conf</userinput></screen> 218 218 --> … … 252 252 /etc/sysctl.d, /etc/systemd, /etc/tmpfiles.d, /etc/udev, 253 253 /etc/xdg/systemd, /usr/lib/systemd, /usr/lib/udev, /usr/include/systemd, 254 /usr/lib/binfmt.d, /usr/lib/environment.d, /usr/lib/kernel, 255 /usr/lib/modules-load.d, /usr/lib/sysctl.d, /usr/lib/systemd, 254 /usr/lib/binfmt.d, /usr/lib/environment.d, /usr/lib/kernel, 255 /usr/lib/modules-load.d, /usr/lib/sysctl.d, /usr/lib/systemd, 256 256 /usr/lib/tmpfiles.d, 257 257 /usr/share/doc/systemd-&systemd-version;, /usr/share/factory, … … 324 324 <listitem> 325 325 <para>Is the first process to be started when the kernel has initialized 326 the hardware which takes over the boot process and starts all 326 the hardware which takes over the boot process and starts all 327 327 processes according to its configuration files. In this case, it starts 328 328 systemd</para> … … 390 390 <term><command>networkctl</command></term> 391 391 <listitem> 392 <para>Is used to introspect and configure the state of the network 392 <para>Is used to introspect and configure the state of the network 393 393 links configured by systemd-networkd</para> 394 394 <indexterm zone="ch-system-systemd networkctl"> … … 478 478 <term><command>shutdown</command></term> 479 479 <listitem> 480 <para>Brings the system down in a safe and secure manner, signaling 480 <para>Brings the system down in a safe and secure manner, signaling 481 481 all processes and notifying all logged-in users</para> 482 482 <indexterm zone="ch-system-systemd shutdown"> … … 775 775 <term><command>systemd-tty-ask-password-agent</command></term> 776 776 <listitem> 777 <para>Is used to list and/or process pending systemd password 777 <para>Is used to list and/or process pending systemd password 778 778 requests</para> 779 779 <indexterm zone="ch-system-systemd systemd-tty-ask-password-agent"> … … 808 808 <term><command>udevadm</command></term> 809 809 <listitem> 810 <para>Is a generic udev administration tool which controls the udevd 811 daemon, provides info from the Udev hardware database, monitors 812 uevents, waits for uevents to finish, tests udev configuration, and 810 <para>Is a generic udev administration tool which controls the udevd 811 daemon, provides info from the Udev hardware database, monitors 812 uevents, waits for uevents to finish, tests udev configuration, and 813 813 triggers uevents for a given device</para> 814 814 <indexterm zone="ch-system-systemd udevadm"> -
chapter08/sysvinit.xml
r8e6babe rc6f58f47 92 92 93 93 <seglistitem> 94 <seg>bootlogd, fstab-decode, halt, init, killall5, 94 <seg>bootlogd, fstab-decode, halt, init, killall5, 95 95 poweroff (link to halt), reboot (link to halt), runlevel, 96 96 shutdown, and telinit (link to init)</seg> -
chapter08/tcl.xml
r8e6babe rc6f58f47 52 52 53 53 <!-- <para>Note that the Tcl package used here is a minimal version needed 54 to run the LFS tests. For the full package, see the 54 to run the LFS tests. For the full package, see the 55 55 <ulink url='&blfs-book;general/tcl.html'>BLFS Tcl procedures</ulink>.</para>--> 56 56 … … 156 156 <seglistitem> 157 157 <seg> 158 tclsh (link to tclsh&tcl-major-version;) and 158 tclsh (link to tclsh&tcl-major-version;) and 159 159 tclsh&tcl-major-version; 160 160 </seg> 161 161 <seg> 162 libtcl&tcl-major-version;.so and 162 libtcl&tcl-major-version;.so and 163 163 libtclstub&tcl-major-version;.a 164 164 </seg> -
chapter08/texinfo.xml
r8e6babe rc6f58f47 197 197 <term><command>texi2any</command></term> 198 198 <listitem> 199 <para>Translate Texinfo source documentation to 199 <para>Translate Texinfo source documentation to 200 200 various other formats</para> 201 201 <indexterm zone="ch-system-texinfo texi2any"> -
chapter08/util-linux.xml
r8e6babe rc6f58f47 76 76 77 77 <para>The --disable and --without options prevent warnings about 78 building components that require packages not in LFS or are 78 building components that require packages not in LFS or are 79 79 inconsistent with programs installed by other packages.</para> 80 80 … … 139 139 umount, uname26, unshare, utmpdump, uuidd, uuidgen, uuidparse, wall, wdctl, whereis, 140 140 wipefs, x86_64, and zramctl</seg> 141 <seg>libblkid.so, libfdisk.so, libmount.so, 141 <seg>libblkid.so, libfdisk.so, libmount.so, 142 142 libsmartcols.so, and libuuid.so</seg> 143 <seg>/usr/include/blkid, 144 /usr/include/libfdisk, 145 /usr/include/libmount, 146 /usr/include/libsmartcols, 147 /usr/include/uuid, 148 /usr/share/doc/util-linux-&util-linux-version;, 143 <seg>/usr/include/blkid, 144 /usr/include/libfdisk, 145 /usr/include/libmount, 146 /usr/include/libsmartcols, 147 /usr/include/uuid, 148 /usr/share/doc/util-linux-&util-linux-version;, 149 149 and /var/lib/hwclock</seg> 150 150 </seglistitem> … … 593 593 <term><command>last</command></term> 594 594 <listitem> 595 <para>Shows which users last logged in (and out), searching back 596 through the <filename>/var/log/wtmp</filename> file; it also shows 595 <para>Shows which users last logged in (and out), searching back 596 through the <filename>/var/log/wtmp</filename> file; it also shows 597 597 system boots, shutdowns, and run-level changes</para> 598 598 <indexterm zone="ch-system-util-linux last"> … … 605 605 <term><command>lastb</command></term> 606 606 <listitem> 607 <para>Shows the failed login attempts, as logged in 607 <para>Shows the failed login attempts, as logged in 608 608 <filename>/var/log/btmp</filename></para> 609 609 <indexterm zone="ch-system-util-linux lastb"> … … 760 760 <term><command>mesg</command></term> 761 761 <listitem> 762 <para>Controls whether other users can send messages to the current 762 <para>Controls whether other users can send messages to the current 763 763 user's terminal</para> 764 764 <indexterm zone="ch-system-util-linux mesg"> … … 1261 1261 <term><command>zramctl</command></term> 1262 1262 <listitem> 1263 <para>A program to set up and control zram (compressed ram disk) 1263 <para>A program to set up and control zram (compressed ram disk) 1264 1264 devices</para> 1265 1265 <indexterm zone="ch-system-util-linux zramctl"> -
chapter08/vim.xml
r8e6babe rc6f58f47 63 63 <screen><userinput remap="make">make</userinput></screen> 64 64 65 <para>To prepare the tests, ensure that user 66 <systemitem class="username">tester</systemitem> can write 65 <para>To prepare the tests, ensure that user 66 <systemitem class="username">tester</systemitem> can write 67 67 to the source tree:</para> 68 68 … … 134 134 " Ensure defaults are set before customizing settings, not after 135 135 source $VIMRUNTIME/defaults.vim 136 let skip_defaults_vim=1 136 let skip_defaults_vim=1 137 137 138 138 set nocompatible -
chapter08/xz.xml
r8e6babe rc6f58f47 75 75 <seglistitem> 76 76 <seg> 77 lzcat (link to xz), 78 lzcmp (link to xzdiff), 79 lzdiff (link to xzdiff), 80 lzegrep (link to xzgrep), 77 lzcat (link to xz), 78 lzcmp (link to xzdiff), 79 lzdiff (link to xzdiff), 80 lzegrep (link to xzgrep), 81 81 lzfgrep (link to xzgrep), 82 lzgrep (link to xzgrep), 83 lzless (link to xzless), 82 lzgrep (link to xzgrep), 83 lzless (link to xzless), 84 84 lzma (link to xz), 85 lzmadec, 86 lzmainfo, 85 lzmadec, 86 lzmainfo, 87 87 lzmore (link to xzmore), 88 unlzma (link to xz), 89 unxz (link to xz), 90 xz, 88 unlzma (link to xz), 89 unxz (link to xz), 90 xz, 91 91 xzcat (link to xz), 92 xzcmp (link to xzdiff), 93 xzdec, 94 xzdiff, 92 xzcmp (link to xzdiff), 93 xzdec, 94 xzdiff, 95 95 xzegrep (link to xzgrep), 96 xzfgrep (link to xzgrep), 97 xzgrep, 98 xzless, and 96 xzfgrep (link to xzgrep), 97 xzgrep, 98 xzless, and 99 99 xzmore</seg> 100 100 <seg> … … 102 102 </seg> 103 103 <seg> 104 /usr/include/lzma and 104 /usr/include/lzma and 105 105 /usr/share/doc/xz-&xz-version; 106 106 </seg> -
chapter08/zstd.xml
r8e6babe rc6f58f47 74 74 75 75 <seglistitem> 76 <seg>zstd, 77 zstdcat (link to zstd), 78 zstdgrep, 79 zstdless, 76 <seg>zstd, 77 zstdcat (link to zstd), 78 zstdgrep, 79 zstdless, 80 80 zstdmt (link to zstd), and 81 81 unzstd (link to zstd) -
chapter09/bootscripts.xml
r8e6babe rc6f58f47 25 25 26 26 <para>The LFS-Bootscripts package contains a set of scripts to start/stop 27 the LFS system at bootup/shutdown. 27 the LFS system at bootup/shutdown. 28 28 The configuration files and procedures needed to 29 29 customize the boot process are described in the following sections.</para> -
chapter09/consoled.xml
r8e6babe rc6f58f47 26 26 url="http://www.tldp.org/HOWTO/HOWTO-INDEX/other-lang.html"/>. 27 27 Examine the output of <command>localectl list-keymaps</command> for a list of 28 valid console keymaps. Look in the 28 valid console keymaps. Look in the 29 29 <filename class="directory">/usr/share/consolefonts</filename> 30 30 directory for valid screen fonts.</para> -
chapter09/introduction.xml
r8e6babe rc6f58f47 30 30 system.</para> 31 31 32 <para>The <command>init</command> program is controlled by the 32 <para>The <command>init</command> program is controlled by the 33 33 <filename>/etc/inittab</filename> file and is organized into run levels that 34 34 can be run by the user:</para> … … 62 62 <itemizedlist> 63 63 <listitem> 64 <para>May be slower to boot. A medium speed base LFS system 65 takes 8-12 seconds where the boot time is measured from the 66 first kernel message to the login prompt. Network 67 connectivity is typically established about 2 seconds 64 <para>May be slower to boot. A medium speed base LFS system 65 takes 8-12 seconds where the boot time is measured from the 66 first kernel message to the login prompt. Network 67 connectivity is typically established about 2 seconds 68 68 after the login prompt.</para> 69 69 </listitem> -
chapter09/locale.xml
r8e6babe rc6f58f47 81 81 before the telephone number in order to get into the country. If any of the 82 82 commands above fail with a message similar to the one shown below, this means 83 that your locale was either not installed in Chapter 8 or is not 83 that your locale was either not installed in Chapter 8 or is not 84 84 supported by the default installation of Glibc.</para> 85 85 … … 143 143 mail with such characters from Mutt or Pine results in non-RFC-conforming 144 144 messages being sent (the charset in the outgoing mail is indicated as <quote>unknown 145 8-bit</quote>). It's suggested that you use the <quote>C</quote> locale only 145 8-bit</quote>). It's suggested that you use the <quote>C</quote> locale only 146 146 if you are certain that you will never need 8-bit characters.</para> 147 147 -
chapter09/network.xml
r8e6babe rc6f58f47 32 32 characteristics such as enp2s1. If you are not sure what your interface 33 33 name is, you can always run <command>ip link</command> or <command>ls 34 /sys/class/net</command> after you have booted your system. 34 /sys/class/net</command> after you have booted your system. 35 35 </para></note> 36 36 … … 158 158 <primary sortas="e-/etc/hosts">/etc/hosts</primary> 159 159 </indexterm> 160 160 161 161 <indexterm zone="ch-config-hosts"> 162 162 <primary sortas="d-localnet">localnet</primary> 163 163 <secondary>/etc/hosts</secondary> 164 164 </indexterm> 165 165 166 166 <indexterm zone="ch-config-hosts"> 167 167 <primary sortas="d-network">network</primary> 168 168 <secondary>/etc/hosts</secondary> 169 169 </indexterm> 170 170 171 171 <para>Decide on the IP address, fully-qualified domain name (FQDN), and 172 172 possible aliases for use in the <filename>/etc/hosts</filename> file. The 173 173 syntax is:</para> 174 174 175 175 <screen><literal>IP_address myhost.example.org aliases</literal></screen> 176 176 … … 187 187 <para>x can be any number in the range 16-31. y can be any number in the 188 188 range 0-255.</para> 189 189 190 190 <para>A valid private IP address could be 192.168.1.1. A valid FQDN for 191 191 this IP could be lfs.example.org.</para> 192 192 193 193 <para>Even if not using a network card, a valid FQDN is still required. 194 194 This is necessary for certain programs to operate correctly.</para> 195 195 196 196 <para>Create the <filename>/etc/hosts</filename> file by running:</para> 197 197 … … 210 210 211 211 <para>The <replaceable><192.168.1.1></replaceable>, 212 <replaceable><FQDN></replaceable>, and 212 <replaceable><FQDN></replaceable>, and 213 213 <replaceable><HOSTNAME></replaceable> values need to be 214 214 changed for specific uses or requirements (if assigned an IP address by a -
chapter09/networkd.xml
r8e6babe rc6f58f47 39 39 <filename class="extension">.netdev</filename> and 40 40 <filename class="extension">.network</filename> files. For detailed 41 descriptions and example contents of these configuration files, consult 41 descriptions and example contents of these configuration files, consult 42 42 the <filename>systemd-link(5)</filename>, 43 43 <filename>systemd-netdev(5)</filename> and … … 58 58 each type of connection. For example, the classic interface 59 59 name for a wired connection is eth0. A wireless connection 60 will usually have the name wifi0 or wlan0. 60 will usually have the name wifi0 or wlan0. 61 61 </para> 62 62 … … 76 76 <para> 77 77 Create a manual naming scheme, for example by naming the 78 interfaces something like "internet0", "dmz0", or "lan0". 79 To do that, create .link files in /etc/systemd/network/ that 78 interfaces something like "internet0", "dmz0", or "lan0". 79 To do that, create .link files in /etc/systemd/network/ that 80 80 select an explicit name or a better naming scheme for your 81 81 network interfaces. For example: … … 92 92 93 93 <para> 94 See the man page systemd.link(5) for more information. 94 See the man page systemd.link(5) for more information. 95 95 </para> 96 96 </listitem> … … 98 98 <listitem> 99 99 <para> 100 In /boot/grub/grub.cfg, pass the option net.ifnames=0 on the 100 In /boot/grub/grub.cfg, pass the option net.ifnames=0 on the 101 101 kernel command line. 102 102 </para> … … 210 210 There will often be more than one entry (requirements demand secondary 211 211 servers for fallback capability). If you only need or want one DNS server, 212 remove the second <emphasis>nameserver</emphasis> line from the file. 212 remove the second <emphasis>nameserver</emphasis> line from the file. 213 213 The IP address may also be a router on the local network. Another option 214 214 is to use the Google Public DNS service using the IP addresses below as … … 253 253 <primary sortas="e-/etc/hosts">/etc/hosts</primary> 254 254 </indexterm> 255 255 256 256 <indexterm zone="ch-config-hosts"> 257 257 <primary sortas="d-localnet">localnet</primary> 258 258 <secondary>/etc/hosts</secondary> 259 259 </indexterm> 260 260 261 261 <indexterm zone="ch-config-hosts"> 262 262 <primary sortas="d-network">network</primary> -
chapter09/profile.xml
r8e6babe rc6f58f47 104 104 before the telephone number in order to get into the country. If any of the 105 105 commands above fail with a message similar to the one shown below, this means 106 that your locale was either not installed in <xref linkend="ch-system-glibc"/> 106 that your locale was either not installed in <xref linkend="ch-system-glibc"/> 107 107 or is not supported by the default installation of Glibc.</para> 108 108 -
chapter09/symlinks.xml
r8e6babe rc6f58f47 23 23 and the Realtek card becomes eth1. In some cases, after a reboot the cards 24 24 could get renumbered the other way around.</para> 25 25 26 26 <para>In the new naming scheme, typical network device names would then 27 27 be something like enp5s0 or wlp3s0. If this naming convention is not … … 31 31 <sect3> 32 32 <title>Disabling Persistent Naming on the Kernel Command Line</title> 33 33 34 34 <para>The traditional naming scheme using eth0, eth1, etc can be 35 restored by adding <userinput>net.ifnames=0</userinput> on the 35 restored by adding <userinput>net.ifnames=0</userinput> on the 36 36 kernel command line. This is most appropriate for those systems 37 37 that have only one ethernet device of the same type. Laptops 38 often have multiple ethernet connections that are named eth0 and 39 wlan0 and are also candidates for this method. The command line 40 is passed in the GRUB configuration file. 38 often have multiple ethernet connections that are named eth0 and 39 wlan0 and are also candidates for this method. The command line 40 is passed in the GRUB configuration file. 41 41 See <xref linkend="grub-cfg"/>.</para> 42 42 </sect3> … … 44 44 <sect3> 45 45 <title>Creating Custom Udev Rules</title> 46 46 47 47 <para>The naming scheme can be customized by creating custom udev 48 48 rules. A script has been included that generates the initial rules. … … 62 62 are not consistently assigned. In these cases, this method cannot 63 63 be used.</para></note> 64 64 65 65 <para>The file begins with a comment block followed by two lines for each 66 66 NIC. The first line for each NIC is a commented description showing its … … 70 70 interface; this information is only for reference. The second line is the 71 71 udev rule that matches this NIC and actually assigns it a name.</para> 72 72 73 73 <para>All udev rules are made up of several keys, separated by commas and 74 74 optional whitespace. This rule's keys and an explanation of each of them 75 75 are as follows:</para> 76 76 77 77 <itemizedlist> 78 78 <listitem> … … 107 107 </listitem> 108 108 </itemizedlist> 109 109 110 110 <para>The value of <literal>NAME</literal> is the important part. Make sure 111 111 you know which name has been assigned to each of your network cards before -
chapter09/systemd-custom.xml
r8e6babe rc6f58f47 51 51 52 52 <para>By default, <filename class="directory">/tmp</filename> is created as 53 a tmpfs. If this is not desired, it can be overridden by executing the 53 a tmpfs. If this is not desired, it can be overridden by executing the 54 54 following command:</para> 55 55 … … 57 57 58 58 <para>Alternatively, if a separate partition for 59 <filename class="directory">/tmp</filename> is desired, specify that 59 <filename class="directory">/tmp</filename> is desired, specify that 60 60 partition in a <filename>/etc/fstab</filename> entry.</para> 61 61 … … 82 82 <listitem><para>systemd-tmpfiles-setup.service</para></listitem> 83 83 </itemizedlist> 84 84 85 85 <para>The system location for the configuration files is 86 <filename>/usr/lib/tmpfiles.d/*.conf</filename>. The local 86 <filename>/usr/lib/tmpfiles.d/*.conf</filename>. The local 87 87 configuration files are in 88 88 <filename class="directory">/etc/tmpfiles.d</filename>. Files in … … 95 95 <para> 96 96 Note that the syntax for the 97 <filename>/usr/lib/tmpfiles.d/*.conf</filename> files can be 97 <filename>/usr/lib/tmpfiles.d/*.conf</filename> files can be 98 98 confusing. For example, the default deletion of files in the /tmp directory 99 is located in <filename>/usr/lib/tmpfiles.d/tmp.conf</filename> with 99 is located in <filename>/usr/lib/tmpfiles.d/tmp.conf</filename> with 100 100 the line: 101 101 … … 149 149 systems, systemd uses a unified format for different types of startup 150 150 files (or units). The command <command>systemctl</command> is used to 151 enable, disable, control state, and obtain status of unit files. Here 151 enable, disable, control state, and obtain status of unit files. Here 152 152 are some examples of frequently used commands:</para> 153 153 -
chapter09/udev.xml
r8e6babe rc6f58f47 120 120 ownership at whatever <systemitem 121 121 class="filesystem">devtmpfs</systemitem> used initially.</para> </sect3> 122 122 123 123 <sect3 id="module-loading"> 124 124 <title>Module Loading</title> … … 224 224 <para>Note that the <quote>softdep</quote> command also allows 225 225 <literal>pre:</literal> dependencies, or a mixture of both 226 <literal>pre:</literal> and <literal>post:</literal> dependencies. See 226 <literal>pre:</literal> and <literal>post:</literal> dependencies. See 227 227 the <filename>modprobe.d(5)</filename> manual page for more information 228 228 on <quote>softdep</quote> syntax and capabilities.</para> 229 229 230 <para revision="sysv">If the module in question is not a wrapper and is 231 useful by itself, configure the <command>modules</command> bootscript to 230 <para revision="sysv">If the module in question is not a wrapper and is 231 useful by itself, configure the <command>modules</command> bootscript to 232 232 load this module on system boot. To do this, add the module name to the 233 233 <filename>/etc/sysconfig/modules</filename> file on a separate line. -
chapter09/usage.xml
r8e6babe rc6f58f47 25 25 particular Linux distribution, they should work the same in LFS too. LFS has its 26 26 own way of doing things, but it respects generally accepted standards.</para> 27 27 28 28 <para>SysVinit (which will be referred to as <quote>init</quote> from now on) 29 29 works using a run-levels scheme. There are seven (numbered 0 to 6) run-levels … … 234 234 /sys/class/rtc.</para> 235 235 236 <para>For information on kernel module loading and udev, see 236 <para>For information on kernel module loading and udev, see 237 237 <xref linkend="module-loading"/>.</para> 238 238 </sect2> … … 536 536 <sect2 id="ch-config-createfiles"> 537 537 <title>Creating Files at Boot</title> 538 538 539 539 <indexterm zone="ch-config-createfiles"> 540 540 <primary sortas="d-createfiles">File creation at boot</primary> 541 541 <secondary>configuring</secondary> 542 542 </indexterm> 543 543 544 544 <para>At times, it is desirable to create files at boot time. For instance, 545 545 the <filename class="directory">/tmp/.ICE-unix</filename> directory 546 546 is often needed. This can be done by creating an entry in the 547 547 <filename>/etc/sysconfig/createfiles</filename> configuration script. 548 The format of this file is embedded in the comments of the default 548 The format of this file is embedded in the comments of the default 549 549 configuration file.</para> 550 550 </sect2> … … 552 552 <sect2 id="ch-config-sysklogd"> 553 553 <title>Configuring the sysklogd Script</title> 554 554 555 555 <indexterm zone="ch-config-sysklogd"> 556 556 <primary sortas="d-sysklogd">sysklogd</primary> 557 557 <secondary>configuring</secondary> 558 558 </indexterm> 559 559 560 560 <para>The <filename>sysklogd</filename> script invokes the 561 561 <command>syslogd</command> program as a part of System V initialization. The … … 575 575 <sect2 id="ch-config-site"> 576 576 <title>The rc.site File</title> 577 577 578 578 <indexterm zone="ch-config-site"> 579 579 <primary sortas="a-rc.site">rc.site</primary> 580 580 </indexterm> 581 581 582 582 <para>The optional <filename>/etc/sysconfig/rc.site</filename> file contains 583 583 settings that are automatically set for each SystemV boot script. It can … … 588 588 <filename>rc.site</filename>, the values in the script specific files have 589 589 precedence. </para> 590 590 591 591 <para><filename>rc.site</filename> also contains parameters that can 592 592 customize other aspects of the boot process. Setting the IPROMPT variable 593 593 will enable selective running of bootscripts. Other options are described 594 594 in the file comments. The default version of the file is as follows:</para> 595 595 596 596 <!-- Use role to fix a pdf generation problem --> 597 597 <screen role="auto">&site;</screen> 598 598 599 599 <sect3> 600 600 <title>Customizing the Boot and Shutdown Scripts</title> 601 601 602 602 <para>The LFS boot scripts boot and shut down a system in a fairly 603 603 efficient manner, but there are a few tweaks that you can make in the … … 605 605 to your preferences. To do this, adjust the settings in 606 606 the <filename>/etc/sysconfig/rc.site</filename> file above.</para> 607 607 608 608 <itemizedlist> 609 609 610 610 <listitem><para>During the boot script <filename>udev</filename>, there is 611 611 a call to <command>udev settle</command> that requires some time to … … 614 614 card, the boot process will probably not need to wait for this command. To 615 615 skip it, set the variable OMIT_UDEV_SETTLE=y.</para></listitem> 616 616 617 617 <listitem><para>The boot script <filename>udev_retry</filename> also runs 618 618 <command>udev settle</command> by default. This command is only needed by … … 623 623 needed. Skip the command by setting the variable OMIT_UDEV_RETRY_SETTLE=y. 624 624 </para></listitem> 625 625 626 626 <listitem><para>By default, the file system checks are silent. This can 627 627 appear to be a delay during the bootup process. To turn on the 628 628 <command>fsck</command> output, set the variable VERBOSE_FSCK=y. 629 629 </para></listitem> 630 630 631 631 <listitem><para>When rebooting, you may want to skip the filesystem check, 632 632 <command>fsck</command>, completely. To do this, either create the file … … 637 637 the <parameter>-F</parameter> parameter instead of <parameter>-f</parameter>. 638 638 </para> 639 639 640 640 <para>Setting the variable FASTBOOT=y will disable <command>fsck</command> 641 641 during the boot process until it is removed. This is not recommended 642 642 on a permanent basis.</para></listitem> 643 643 644 644 <listitem><para>Normally, all files in the <filename 645 645 class='directory'>/tmp</filename> directory are deleted at boot time. … … 647 647 noticeable delay in the boot process. To skip removing these files set the 648 648 variable SKIPTMPCLEAN=y.</para></listitem> 649 649 650 650 <listitem><para>During shutdown, the <command>init</command> program sends 651 651 a TERM signal to each program it has started (e.g. agetty), waits for a set … … 659 659 script can be skipped by setting the parameter 660 660 KILLDELAY=0.</para></listitem> 661 661 662 662 </itemizedlist> 663 663 664 664 </sect3> 665 665 </sect2> -
chapter10/grub.xml
r8e6babe rc6f58f47 43 43 libisoburn</ulink> package.</para> 44 44 45 <screen role="nodump"><userinput>cd /tmp 46 grub-mkrescue --output=grub-img.iso 45 <screen role="nodump"><userinput>cd /tmp 46 grub-mkrescue --output=grub-img.iso 47 47 xorriso -as cdrecord -v dev=/dev/cdrw blank=as_needed grub-img.iso</userinput></screen> 48 48 -
chapter10/kernel.xml
r8e6babe rc6f58f47 98 98 99 99 <note> 100 101 100 <para>A good starting place for setting up the kernel configuration is to 102 101 run <command>make defconfig</command>. This will set the base … … 116 115 [*] Control Group support [CONFIG_CGROUPS] 117 116 [ ] Enable deprecated sysfs features to support old userspace tools [CONFIG_SYSFS_DEPRECATED] 118 [*] Configure standard kernel features (expert users) [CONFIG_EXPERT] ---> 117 [*] Configure standard kernel features (expert users) [CONFIG_EXPERT] ---> 119 118 [*] open by fhandle syscalls [CONFIG_FHANDLE] 120 119 Processor type and features ---> … … 265 264 266 265 <note> 267 <para>In many cases, the configuration of the kernel will need to be 266 <para>In many cases, the configuration of the kernel will need to be 268 267 updated for packages that will be installed later in BLFS. Unlike 269 268 other packages, it is not necessary to remove the kernel source tree 270 after the newly built kernel is installed.</para> 271 269 after the newly built kernel is installed.</para> 270 272 271 <para>If the kernel source tree is going to be retained, run 273 272 <command>chown -R 0:0</command> on the <filename -
chapter11/reboot.xml
r8e6babe rc6f58f47 57 57 within a comfortable GUI environment, install <ulink revision="sysv" 58 58 url='&blfs-book;postlfs/openssh.html'>openssh</ulink><ulink revision="systemd" 59 url='&blfs-systemd-book;postlfs/openssh.html'>openssh</ulink>. 59 url='&blfs-systemd-book;postlfs/openssh.html'>openssh</ulink>. 60 60 </para></listitem> 61 61
Note:
See TracChangeset
for help on using the changeset viewer.