Changeset 1118b17
- Timestamp:
- 05/24/2016 09:24:59 PM (8 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, 12.2, 12.2-rc1, 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/loongarch-12.2, xry111/mips64el, xry111/multilib, xry111/pip3, xry111/rust-wip-20221008, xry111/update-glibc
- Children:
- 77ab7f3
- Parents:
- 11ebea6
- Files:
-
- 12 added
- 1 deleted
- 38 edited
Legend:
- Unmodified
- Added
- Removed
-
Makefile
r11ebea6 r1118b17 1 1 BASEDIR = ~/lfs-book 2 SYSDDIR = ~/lfs-systemd 2 3 DUMPDIR = ~/lfs-commands 3 4 RENDERTMP = $(HOME)/tmp … … 14 15 endif 15 16 16 lfs: validate profile-html 17 sysv: validate profile-html 18 $(Q)xsltproc --nonet \ 19 --output $(RENDERTMP)/lfs-html2.xml \ 20 --stringparam profile.revision sysv \ 21 stylesheets/lfs-xsl/profile.xsl \ 22 $(RENDERTMP)/lfs-html.xml 23 17 24 @echo "Generating chunked XHTML files..." 18 $(Q)xsltproc --nonet -stringparam chunk.quietly $(CHUNK_QUIET) \ 19 -stringparam rootid "$(ROOT_ID)" -stringparam base.dir $(BASEDIR)/ \ 20 stylesheets/lfs-chunked.xsl $(RENDERTMP)/lfs-html.xml 25 $(Q)xsltproc --nonet \ 26 --stringparam chunk.quietly $(CHUNK_QUIET) \ 27 --stringparam rootid "$(ROOT_ID)" \ 28 --stringparam base.dir $(BASEDIR)/ \ 29 stylesheets/lfs-chunked.xsl \ 30 $(RENDERTMP)/lfs-html2.xml 21 31 22 32 @echo "Copying CSS code and images..." … … 38 48 true; \ 39 49 /bin/bash obfuscate.sh $$filename; \ 40 sed -i -e "s@text/html@application/xhtml+xml@g" $$filename; \ 50 sed -e "s@text/html@application/xhtml+xml@g" \ 51 -e "s/\xa9/\©/ " \ 52 -i $$filename; \ 41 53 done; 42 54 43 55 $(Q)$(MAKE) $(BASEDIR)/wget-list $(BASEDIR)/md5sums 56 57 systemd: validated profile-html 58 $(Q)xsltproc --nonet \ 59 --output $(RENDERTMP)/lfs-html2.xml \ 60 --stringparam profile.revision systemd \ 61 stylesheets/lfs-xsl/profile.xsl \ 62 $(RENDERTMP)/lfs-html.xml 63 64 @echo "Generating chunked XHTML files..." 65 $(Q)xsltproc --nonet \ 66 --stringparam chunk.quietly $(CHUNK_QUIET) \ 67 --stringparam rootid "$(ROOT_ID)" \ 68 --stringparam base.dir $(SYSDDIR)/ \ 69 stylesheets/lfs-chunked.xsl \ 70 $(RENDERTMP)/lfs-html2.xml 71 72 @echo "Copying CSS code and images..." 73 $(Q)if [ ! -e $(SYSDDIR)/stylesheets ]; then \ 74 mkdir -p $(SYSDDIR)/stylesheets; \ 75 fi; 76 $(Q)cp stylesheets/lfs-xsl/*.css $(SYSDDIR)/stylesheets 77 78 $(Q)if [ ! -e $(SYSDDIR)/images ]; then \ 79 mkdir -p $(SYSDDIR)/images; \ 80 fi; 81 $(Q)cp images/*.png $(SYSDDIR)/images 82 83 @echo "Running Tidy and obfuscate.sh..." 84 $(Q)for filename in `find $(SYSDDIR) -name "*.html"`; do \ 85 tidy -config tidy.conf $$filename; \ 86 true; \ 87 /bin/bash obfuscate.sh $$filename; \ 88 sed -e "s@text/html@application/xhtml+xml@g" \ 89 -e "s/\xa9/\©/ " \ 90 -i $$filename; \ 91 done; 92 93 # $(Q)$(MAKE) $(SYSDDIR)/wget-list $(SYSDDIR)/md5sumsd 44 94 45 95 pdf: validate … … 95 145 @echo "Validation complete." 96 146 97 profile-html: validate 147 validated: tmpdir 148 @echo "Validating the book..." 149 $(Q)xmllint --nonet --noent --xinclude --postvalid \ 150 -o $(RENDERTMP)/lfs-full.xml indexd.xml 151 @echo "Validation complete." 152 153 profile-html: 98 154 @echo "Generating profiled XML for XHTML..." 99 155 $(Q)xsltproc --nonet --stringparam profile.condition html \ … … 118 174 $(BASEDIR)/md5sums 119 175 176 md5sumsd: $(SYSDDIR)/md5sumsd 177 $(SYSDDIR)/md5sumsd: stylesheets/wget-list.xsl chapter03/chapter03.xml packages.ent patches.ent 178 @echo "Generating md5sum file..." 179 $(Q)mkdir -p $(SYSDDIR) 180 $(Q)xsltproc --xinclude --nonet --output $(SYSDDIR)/md5sums \ 181 stylesheets/md5sum.xsl chapter03/chapter03.xml 182 120 183 dump-commands: validate 121 184 @echo "Dumping book commands..." -
chapter01/changelog.xml
r11ebea6 r1118b17 19 19 book.</para> 20 20 21 <para revision="systemd">A test</para> 22 21 23 <itemizedlist> 22 24 <title>Changelog Entries:</title> … … 35 37 </itemizedlist> 36 38 </listitem> 39 40 Note: If a change is only specific to sysv or systemd, then use 41 <listitem revision="sysv"> or <listitem revision="systemd"> as 42 appropriate for the entry or if needed the entire day's listitem. 37 43 --> 38 44 <listitem> -
chapter01/how.xml
r11ebea6 r1118b17 82 82 normal.</para> 83 83 84 <para>To finish the installation, the LFS-Bootscripts areset up in84 <para>To finish the installation, the basic system configuration is set up in 85 85 <xref linkend="chapter-bootscripts"/>, and the kernel and boot loader are set 86 86 up in <xref linkend="chapter-bootable"/>. <xref linkend="chapter-finalizing"/> -
chapter01/whatsnew.xml
r11ebea6 r1118b17 59 59 <para>DejaGNU &dejagnu-version;</para> 60 60 </listitem> 61 <!--<listitem revision="systemd"> 62 <para>D-Bus-&dbus-version;</para> 63 </listitem>--> 61 64 <!--<listitem> 62 65 <para>Diffutils &diffutils-version;</para> 63 66 </listitem>--> 64 <!--<listitem >67 <!--<listitem revision="sysv"> 65 68 <para>Eudev &eudev-version;</para> 66 69 </listitem>--> … … 197 200 <para>Shadow &shadow-version;</para> 198 201 </listitem>--> 199 <!--<listitem >202 <!--<listitem revision="sysv"> 200 203 <para>Sysklogd &sysklogd-version;</para> 201 204 </listitem>--> 202 <!--<listitem> 205 <!--<listitem revision="systemd"> 206 <para>Systemd &systemd-version;</para> 207 </listitem>--> 208 <!--<listitem revision="sysv"> 203 209 <para>SysVinit &sysvinit-version;</para> 204 210 </listitem>--> -
chapter02/creatingpartition.xml
r11ebea6 r1118b17 37 37 space. A 20 GB partition is a reasonable size to provide for growth. The LFS 38 38 system itself will not take up this much room. A large portion of this 39 requirement is to provide sufficient free temporary storage ias well as39 requirement is to provide sufficient free temporary storage as well as 40 40 for adding additional capabilities after LFS is complete. Additionally, compiling 41 41 packages can require a lot of disk space which will be reclaimed after the -
chapter03/packages.xml
r11ebea6 r1118b17 113 113 </listitem> 114 114 </varlistentry> 115 <!-- 116 <varlistentry >115 116 <varlistentry revision="systemd"> 117 117 <term>D-Bus (&dbus-version;) - <token>&dbus-size;</token>:</term> 118 118 <listitem> … … 122 122 </listitem> 123 123 </varlistentry> 124 --> 124 125 125 <varlistentry> 126 126 <term>DejaGNU (&dejagnu-version;) - <token>&dejagnu-size;</token>:</term> … … 141 141 </varlistentry> 142 142 143 <varlistentry >143 <varlistentry revision="sysv"> 144 144 <term>Eudev (&eudev-version;) - <token>&eudev-size;</token>:</term> 145 145 <listitem> … … 148 148 </listitem> 149 149 </varlistentry> 150 <!-- 151 <varlistentry> 152 <term>Eudev-manpages (&eudev-version;) - <token>&eudev-manpages-size;</token>:</term> 153 <listitem> 154 <para>Download: <ulink url="&eudev-manpages-url;"/></para> 155 <para>MD5 sum: <literal>&eudev-manpages-md5;</literal></para> 156 </listitem> 157 </varlistentry> 158 --> 150 159 151 <varlistentry> 160 152 <term>E2fsprogs (&e2fsprogs-version;) - <token>&e2fsprogs-size;</token>:</term> … … 504 496 </varlistentry> 505 497 506 <!-- FIXME:507 <varlistentry>508 <term>Ncurses Rollup Patch (&ncurses-date;) - 328 KB:</term>509 <listitem>510 <para><ulink url="ftp://invisible-island.net/ncurses/&ncurses-version;/"/></para>511 512 <note>513 <para>Ncurses Rollup Patch (&ncurses-date;) may no longer be available514 at the listed location. The site administrators of the master download515 location occasionally remove older versions when new ones are released.516 There is no alternative download location yet.</para>517 </note>518 </listitem>519 </varlistentry>520 -->521 522 498 <varlistentry> 523 499 <term>Patch (&patch-version;) - <token>&patch-size;</token>:</term> … … 595 571 </varlistentry> 596 572 597 <varlistentry >573 <varlistentry revision="sysv"> 598 574 <term>Sysklogd (&sysklogd-version;) - <token>&sysklogd-size;</token>:</term> 599 575 <listitem> … … 603 579 </listitem> 604 580 </varlistentry> 605 <!-- 606 <varlistentry >581 582 <varlistentry revision="systemd"> 607 583 <term>Systemd (&systemd-version;) - <token>&systemd-size;</token>:</term> 608 584 <listitem> … … 612 588 </listitem> 613 589 </varlistentry> 614 --> 615 <varlistentry >590 591 <varlistentry revision="sysv"> 616 592 <term>Sysvinit (&sysvinit-version;) - <token>&sysvinit-size;</token>:</term> 617 593 <listitem> -
chapter03/patches.xml
r11ebea6 r1118b17 91 91 </varlistentry> 92 92 93 <varlistentry> 93 <varlistentry revision="systemd"> 94 <term>Systemd Compat Patch - <token>&systemd-compat-patch-size;</token>:</term> 95 <listitem> 96 <para>Download: <ulink url="&patches-root;&systemd-compat-patch;"/></para> 97 <para>MD5 sum: <literal>&systemd-compat-patch-md5;</literal></para> 98 </listitem> 99 </varlistentry> 100 101 <varlistentry revision="sysv"> 94 102 <term>Sysvinit Consolidated Patch - <token>&sysvinit-consolidated-patch-size;</token>:</term> 95 103 <listitem> -
chapter05/gcc-pass1.xml
r11ebea6 r1118b17 197 197 <varlistentry> 198 198 <term><parameter>--disable-decimal-float, --disable-threads, 199 --disable-libatomic, --disable-libgomp, --disable-libmpx 199 --disable-libatomic, --disable-libgomp, --disable-libmpx, 200 200 --disable-libquadmath, --disable-libssp, --disable-libvtv, 201 201 --disable-libstdcxx</parameter></term> -
chapter05/glibc.xml
r11ebea6 r1118b17 43 43 <sect2 role="installation"> 44 44 <title>Installation of Glibc</title> 45 <!--46 <para>First fix a build problem that affects i386 systems:</para>47 45 48 <screen><userinput remap="pre">patch -Np1 -i ../&glibc-upstream-patch;</userinput></screen>49 -->50 46 <para>Fix some problems identified upstream:</para> 51 47 … … 81 77 </listitem> 82 78 </varlistentry> 83 <!-- 84 <varlistentry> 85 <term><parameter>- -disable-profile</parameter></term> 86 <listitem> 87 <para>This builds the libraries without profiling information. Omit 88 this option if profiling on the temporary tools is necessary.</para> 89 </listitem> 90 </varlistentry> 91 --> 79 92 80 <varlistentry> 93 81 <term><parameter>--enable-kernel=&min-kernel;</parameter></term> … … 98 86 </listitem> 99 87 </varlistentry> 100 <!-- 101 <varlistentry> 102 <term><parameter>- -enable-obsolete-rpc</parameter></term> 103 <listitem> 104 <para>This installs NIS and RPC related headers that are not 105 installed by default. They are required to build GCC and by 106 several BLFS packages.</para> 107 </listitem> 108 </varlistentry> 109 --> 88 110 89 <varlistentry> 111 90 <term><parameter>--with-headers=/tools/include</parameter></term> … … 170 149 <screen><userinput remap="make">make</userinput></screen> 171 150 172 <!--173 <para>This package does come with a test suite, however, it cannot be174 run at this time because we do not have a C++ compiler yet.</para>175 176 <note>177 <para>The test suite also requires locale data to be installed in order to run178 successfully. Locale data provides information to the system regarding179 such things as the date, time, and currency formats accepted and output by180 system utilities. If the test suites are not being run in this chapter181 (as per the recommendation), there is no need to install the locales now.182 The appropriate locales will be installed in the next chapter. To install183 the Glibc locales anyway, use instructions from <xref184 linkend="ch-system-glibc" role="."/></para>185 </note>186 -->187 151 <para>Install the package:</para> 188 152 -
chapter06/acl.xml
r11ebea6 r1118b17 60 60 <para>Prepare Acl for compilation:</para> 61 61 62 <screen ><userinput remap="configure">./configure --prefix=/usr \62 <screen revision="sysv"><userinput remap="configure">./configure --prefix=/usr \ 63 63 --bindir=/bin \ 64 --disable-static \ 65 --libexecdir=/usr/lib</userinput></screen> 66 67 <screen revision="systemd"><userinput remap="configure">./configure --prefix=/usr \ 64 68 --disable-static \ 65 69 --libexecdir=/usr/lib</userinput></screen> -
chapter06/attr.xml
r11ebea6 r1118b17 54 54 <para>Prepare Attr for compilation:</para> 55 55 56 <screen ><userinput remap="configure">./configure --prefix=/usr \56 <screen revision="sysv"><userinput remap="configure">./configure --prefix=/usr \ 57 57 --bindir=/bin \ 58 --disable-static</userinput></screen> 59 60 <screen revision="systemd"><userinput remap="configure">./configure --prefix=/usr \ 58 61 --disable-static</userinput></screen> 59 62 -
chapter06/autoconf.xml
r11ebea6 r1118b17 57 57 several tests are skipped that use Automake. For full test coverage, 58 58 Autoconf can be re-tested after Automake has been installed. In addition, 59 two fail due to changes in libtool-2.4.3 and later.</para>59 two tests fail due to changes in libtool-2.4.3 and later.</para> 60 60 61 61 <para>Install the package:</para> -
chapter06/coreutils.xml
r11ebea6 r1118b17 138 138 sed -i s/\"1\"/\"8\"/1 /usr/share/man/man8/chroot.8</userinput></screen> 139 139 140 <para >Some of the scripts in the LFS-Bootscripts package depend on141 <command>head</command>, <command>sleep</command>, and140 <para revision="sysv">Some of the scripts in the LFS-Bootscripts package 141 depend on <command>head</command>, <command>sleep</command>, and 142 142 <command>nice</command>. As <filename class="directory">/usr</filename> 143 143 may not be available during the early stages of booting, those binaries 144 144 need to be on the root partition:</para> 145 146 <para revision="systemd">Some packages in BLFS and beyond expect the 147 following programs in <filename class="directory">/bin</filename>, so make 148 sure they are placed there:</para> 145 149 146 150 <screen><userinput remap="install">mv -v /usr/bin/{head,sleep,nice,test,[} /bin</userinput></screen> -
chapter06/createfiles.xml
r11ebea6 r1118b17 147 147 command:</para> 148 148 149 <screen ><userinput>cat > /etc/passwd << "EOF"149 <screen revision="sysv"><userinput>cat > /etc/passwd << "EOF" 150 150 <literal>root:x:0:0:root:/root:/bin/bash 151 151 bin:x:1:1:bin:/dev/null:/bin/false … … 155 155 EOF</userinput></screen> 156 156 157 <screen revision="systmed"><userinput>cat > /etc/passwd << "EOF" 158 <literal>root:x:0:0:root:/root:/bin/bash 159 bin:x:1:1:bin:/dev/null:/bin/false 160 daemon:x:6:6:Daemon User:/dev/null:/bin/false 161 messagebus:x:18:18:D-Bus Message Daemon User:/var/run/dbus:/bin/false 162 systemd-bus-proxy:x:72:72:systemd Bus Proxy:/:/bin/false 163 systemd-journal-gateway:x:73:73:systemd Journal Gateway:/:/bin/false 164 systemd-journal-remote:x:74:74:systemd Journal Remote:/:/bin/false 165 systemd-journal-upload:x:75:75:systemd Journal Upload:/:/bin/false 166 systemd-network:x:76:76:systemd Network Management:/:/bin/false 167 systemd-resolve:x:77:77:systemd Resolver:/:/bin/false 168 systemd-timesync:x:78:78:systemd Time Synchronization:/:/bin/false 169 systemd-coredump:x:79:79:systemd Core Dumper:/:/bin/false 170 nobody:x:99:99:Unprivileged User:/dev/null:/bin/false</literal> 171 EOF</userinput></screen> 172 157 173 <para>The actual password for <systemitem class="username">root</systemitem> 158 174 (the <quote>x</quote> used here is just a placeholder) will be set later.</para> … … 161 177 command:</para> 162 178 163 <screen ><userinput>cat > /etc/group << "EOF"179 <screen revision="sysv"><userinput>cat > /etc/group << "EOF" 164 180 <literal>root:x:0: 165 181 bin:x:1:daemon … … 187 203 EOF</userinput></screen> 188 204 205 <screen revision="systemd"><userinput>cat > /etc/group << "EOF" 206 <literal>root:x:0: 207 bin:x:1:daemon 208 sys:x:2: 209 kmem:x:3: 210 tape:x:4: 211 tty:x:5: 212 daemon:x:6: 213 floppy:x:7: 214 disk:x:8: 215 lp:x:9: 216 dialout:x:10: 217 audio:x:11: 218 video:x:12: 219 utmp:x:13: 220 usb:x:14: 221 cdrom:x:15: 222 adm:x:16: 223 messagebus:x:18: 224 systemd-journal:x:23: 225 input:x:24: 226 mail:x:34: 227 systemd-bus-proxy:x:72: 228 systemd-journal-gateway:x:73: 229 systemd-journal-remote:x:74: 230 systemd-journal-upload:x:75: 231 systemd-network:x:76: 232 systemd-resolve:x:77: 233 systemd-timesync:x:78: 234 systemd-coredump:x:79: 235 nogroup:x:99: 236 users:x:999:</literal> 237 EOF</userinput></screen> 238 189 239 <para>The created groups are not part of any standard—they are groups 190 240 decided on in part by the requirements of the Udev configuration in this -
chapter06/dbus.xml
r11ebea6 r1118b17 49 49 <para>Prepare D-Bus for compilation:</para> 50 50 51 <screen><userinput remap="configure">./configure --prefix=/usr \ 52 --sysconfdir=/etc \ 53 --localstatedir=/var \ 54 --docdir=/usr/share/doc/dbus-&dbus-version; \ 55 --with-console-auth-dir=/run/console</userinput></screen> 51 <screen><userinput remap="configure"> ./configure --prefix=/usr \ 52 --sysconfdir=/etc \ 53 --localstatedir=/var \ 54 --disable-static \ 55 --disable-doxygen-docs \ 56 --disable-xml-docs \ 57 --docdir=/usr/share/doc/dbus-&dbus-version; \ 58 --with-console-auth-dir=/run/console</userinput></screen> 56 59 57 60 <variablelist> … … 75 78 packages that are not included in LFS. Instructions for running the 76 79 test suite can be found in the BLFS book at 77 <ulink url="&blfs- root;/view/&short-version;/general/dbus.html"/>.</para>80 <ulink url="&blfs-book;general/dbus.html"/>.</para> 78 81 79 82 <para>Install the package:</para> … … 89 92 ln -sfv ../../lib/$(readlink /usr/lib/libdbus-1.so) /usr/lib/libdbus-1.so</userinput></screen> 90 93 91 <para>Create a symlink, so that D-Bus and Systemd can use the same94 <para>Create a symlink, so that D-Bus and systemd can use the same 92 95 <filename>machine-id</filename> file:</para> 93 96 94 <screen><userinput remap="install">ln -sv /etc/machine-id /var/lib/dbus</userinput></screen> 95 96 <para>Finally, generate a D-Bus UUID to avoid possible warnings 97 when building some packages in BLFS:</para> 98 99 <screen><userinput remap="install">dbus-uuidgen --ensure</userinput></screen> 97 <screen><userinput remap="install">ln -sfv /etc/machine-id /var/lib/dbus</userinput></screen> 100 98 101 99 </sect2> … … 111 109 <seglistitem> 112 110 <seg>dbus-cleanup-sockets, dbus-daemon, dbus-launch, dbus-monitor, 113 dbus- send, and dbus-uuidgen</seg>111 dbus-run-session, dbus-send, and dbus-uuidgen</seg> 114 112 <seg>libdbus-1.{a,so}</seg> 115 113 <seg>/etc/dbus-1, /usr/include/dbus-1.0, /usr/lib/dbus-1.0, 116 114 /usr/share/dbus-1, /usr/share/doc/dbus-&dbus-version;, 117 /var/lib/dbus</seg>115 and /var/lib/dbus</seg> 118 116 </seglistitem> 119 117 </segmentedlist> … … 127 125 <term><command>dbus-cleanup-sockets</command></term> 128 126 <listitem> 129 <para>Used to clean up leftover sockets in a directory .</para>127 <para>Used to clean up leftover sockets in a directory</para> 130 128 <indexterm zone="ch-system-dbus dbus-cleanup-sockets"> 131 129 <primary sortas="b-dbus-cleanup-sockets">dbus-cleanup-sockets</primary> … … 137 135 <term><command>dbus-daemon</command></term> 138 136 <listitem> 139 <para>The D-Bus message bus daemon .</para>137 <para>The D-Bus message bus daemon</para> 140 138 <indexterm zone="ch-system-dbus dbus-daemon"> 141 139 <primary sortas="b-dbus-daemon">dbus-daemon</primary> … … 148 146 <listitem> 149 147 <para>Starts <command>dbus-daemon</command> from a shell 150 script .</para>148 script</para> 151 149 <indexterm zone="ch-system-dbus dbus-launch"> 152 150 <primary sortas="b-dbus-launch">dbus-launch</primary> … … 158 156 <term><command>dbus-monitor</command></term> 159 157 <listitem> 160 <para>Monitors messages passing through a D-Bus message bus .</para>158 <para>Monitors messages passing through a D-Bus message bus</para> 161 159 <indexterm zone="ch-system-dbus dbus-monitor"> 162 160 <primary sortas="b-dbus-monitor">dbus-monitor</primary> … … 165 163 </varlistentry> 166 164 165 <varlistentry id="dbus-run-session"> 166 <term><command>dbus-run-session</command></term> 167 <listitem> 168 <para>Starts a session bus instance of <command>dbus-daemon</command> 169 from a shell script and starts a specified program in that 170 session</para> 171 <indexterm zone="ch-system-dbus dbus-run-session"> 172 <primary sortas="b-dbus-run-session">dbus-run-session</primary> 173 </indexterm> 174 </listitem> 175 </varlistentry> 176 167 177 <varlistentry id="dbus-send"> 168 178 <term><command>dbus-send</command></term> 169 179 <listitem> 170 <para>Sends a message to a D-Bus message bus .</para>180 <para>Sends a message to a D-Bus message bus</para> 171 181 <indexterm zone="ch-system-dbus dbus-send"> 172 182 <primary sortas="b-dbus-send">dbus-send</primary> … … 178 188 <term><command>dbus-uuidgen</command></term> 179 189 <listitem> 180 <para>Generates a universally unique ID .</para>190 <para>Generates a universally unique ID</para> 181 191 <indexterm zone="ch-system-dbus dbus-uuidgen"> 182 192 <primary sortas="b-dbus-uuidgen">dbus-uuidgen</primary> … … 185 195 </varlistentry> 186 196 197 <varlistentry id="libdbus-1"> 198 <term><filename class="libraryfile">libdbus-1</filename></term> 199 <listitem> 200 <para>Contains API functions used to communicate with the D-Bus 201 message bus</para> 202 <indexterm zone="ch-system-dbus libdbus-1"> 203 <primary sortas="c-libdbus-1">libdbus-1</primary> 204 </indexterm> 205 </listitem> 206 </varlistentry> 207 187 208 </variablelist> 188 209 -
chapter06/diffutils.xml
r11ebea6 r1118b17 58 58 <screen><userinput remap="test">make check</userinput></screen> 59 59 60 <para>The test-update-copyright.sh failure can be ignored.</para>60 <para>The test-update-copyright.sh failure can be safely ignored.</para> 61 61 62 62 <para>Install the package:</para> -
chapter06/e2fsprogs.xml
r11ebea6 r1118b17 522 522 </listitem> 523 523 </varlistentry> 524 <!-- 525 <varlistentry id="libquota"> 526 <term><filename class="libraryfile">libquota</filename></term> 527 <listitem> 528 <para>Provides an interface for creating and updating quota files 529 and ext4 superblock fields</para> 530 <indexterm zone="ch-system-e2fsprogs libquota"> 531 <primary sortas="c-libquota">libquota</primary> 532 </indexterm> 533 </listitem> 534 </varlistentry> 535 --> 524 536 525 <varlistentry id="libss"> 537 526 <term><filename class="libraryfile">libss</filename></term> -
chapter06/findutils.xml
r11ebea6 r1118b17 74 74 <screen><userinput remap="install">make install</userinput></screen> 75 75 76 <para>Some of the scripts in the LFS-Bootscripts package depend on 77 <command>find</command>. As <filename class="directory">/usr</filename> 78 may not be available during the early stages of booting, this program 79 needs to be on the root partition. The <command>updatedb</command> 80 script also needs to be modified to correct an explicit path:</para> 76 <para revision="sysv">Some of the scripts in the LFS-Bootscripts package 77 depend on <command>find</command>. As <filename 78 class="directory">/usr</filename> may not be available during the early 79 stages of booting, this program needs to be on the root partition. The 80 <command>updatedb</command> script also needs to be modified to correct an 81 explicit path:</para> 82 83 <para revision="systemd"> Some packages in BLFS and beyond expect the 84 <command>find</command> program in <filename 85 class="directory">/bin</filename>, so make sure it's placed there:</para> 81 86 82 87 <screen><userinput remap="install">mv -v /usr/bin/find /bin -
chapter06/glibc.xml
r11ebea6 r1118b17 153 153 <screen><userinput remap="install">cp -v ../nscd/nscd.conf /etc/nscd.conf 154 154 mkdir -pv /var/cache/nscd</userinput></screen> 155 156 <para revision="systemd">Install the systemd support files for 157 <command>nscd</command>:</para> 158 159 <screen revision="systemd"><userinput remap="install">install -v -Dm644 ../nscd/nscd.tmpfiles /usr/lib/tmpfiles.d/nscd.conf 160 install -v -Dm644 ../nscd/nscd.service /lib/systemd/system/nscd.service</userinput></screen> 155 161 156 162 <para>Next, install the locales that can make the system respond in a … … 327 333 running:</para> 328 334 329 <screen><userinput>cp -v /usr/share/zoneinfo/<replaceable><xxx></replaceable> /etc/localtime</userinput></screen> 335 <screen revision="sysv"><userinput>cp -v /usr/share/zoneinfo/<replaceable><xxx></replaceable> /etc/localtime</userinput></screen> 336 337 <screen revision="systemd"><userinput>ln -sfv /usr/share/zoneinfo/<replaceable><xxx></replaceable> /etc/localtime</userinput></screen> 330 338 331 339 <para>Replace <replaceable><xxx></replaceable> with the name of the … … 563 571 </listitem> 564 572 </varlistentry> 565 <!-- 566 <varlistentry id="pcprofiledump"> 567 <term><command>pcprofiledump</command></term> 568 <listitem> 569 <para>Dumps information generated by PC profiling</para> 570 <indexterm zone="ch-system-glibc pcprofiledump"> 571 <primary sortas="b-pcprofiledump">pcprofiledump</primary> 572 </indexterm> 573 </listitem> 574 </varlistentry> 575 --> 573 576 574 <varlistentry id="pldd"> 577 575 <term><command>pldd</command></term> … … 583 581 </listitem> 584 582 </varlistentry> 585 <!-- 586 <varlistentry id="pt_chown"> 587 <term><command>pt_chown</command></term> 588 <listitem> 589 <para>A helper program for <command>grantpt</command> to set the owner, 590 group and access permissions of a slave pseudo terminal</para> 591 <indexterm zone="ch-system-glibc pt_chown"> 592 <primary sortas="b-pt_chown">pt_chown</primary> 593 </indexterm> 594 </listitem> 595 </varlistentry> 596 --> 583 597 584 <varlistentry id="rpcgen"> 598 585 <term><command>rpcgen</command></term> … … 838 825 </listitem> 839 826 </varlistentry> 840 <!-- 841 <varlistentry id="libpcprofile"> 842 <term><filename class="libraryfile">libpcprofile</filename></term> 843 <listitem> 844 <para>Contains profiling functions used to track the amount of CPU 845 time spent in specific source code lines</para> 846 <indexterm zone="ch-system-glibc libpcprofile"> 847 <primary sortas="c-libpcprofile">libpcprofile</primary> 848 </indexterm> 849 </listitem> 850 </varlistentry> 851 --> 827 852 828 <varlistentry id="libpthread"> 853 829 <term><filename class="libraryfile">libpthread</filename></term> -
chapter06/gmp.xml
r11ebea6 r1118b17 93 93 94 94 <caution><para>The code in gmp is highly optimized for the processor where 95 it is built. Occasionally the code that detects the processor misidentifies95 it is built. Occasionally, the code that detects the processor misidentifies 96 96 the system capabilities and there will be errors in the tests or other 97 97 applications using the gmp libraries with the message "Illegal -
chapter06/m4.xml
r11ebea6 r1118b17 53 53 <screen><userinput remap="test">make check</userinput></screen> 54 54 55 <para>The test-update-copyright.sh failure can be ignored.</para>55 <para>The test-update-copyright.sh failure can safely be ignored.</para> 56 56 57 57 <para>Install the package:</para> -
chapter06/man-db.xml
r11ebea6 r1118b17 92 92 <screen><userinput remap="install">make install</userinput></screen> 93 93 94 <para>Remove a reference to a non-existent user:</para> 95 96 <screen><userinput remap="install">sed -i "s:man root:root root:g" /usr/lib/tmpfiles.d/man-db.conf</userinput></screen> 97 94 98 </sect2> 95 99 -
chapter06/mpfr.xml
r11ebea6 r1118b17 41 41 <sect2 role="installation"> 42 42 <title>Installation of MPFR</title> 43 <!--44 <para>First, apply the following patch to fix various bugs that have been45 addressed upstream:</para>46 43 47 <screen><userinput remap="pre">patch -Np1 -i ../&mpfr-upstream-patch;</userinput></screen>48 -->49 44 <para>Prepare MPFR for compilation:</para> 50 45 -
chapter06/ncurses.xml
r11ebea6 r1118b17 143 143 <para>The instructions above don't create non-wide-character Ncurses 144 144 libraries since no package installed by compiling from sources would link 145 against them at runtime. Currently, the only known binary-only146 applications that link against non-wide-character Ncurses require version147 5. If you must have such libraries because of some binary-only145 against them at runtime. However, the only known binary-only 146 applications that link against non-wide-character Ncurses libraries 147 require version 5. If you must have such libraries because of some binary-only 148 148 application or to be compliant with LSB, build the package again with the 149 149 following commands:</para> -
chapter06/pkgmgt.xml
r11ebea6 r1118b17 261 261 <filename>/etc/passwd</filename>, 262 262 <filename>/etc/group</filename>, 263 <filename>/etc/shadow</filename>, 264 <filename>/etc/ld.so.conf</filename>, 265 <filename>/etc/sysconfig/rc.site</filename>, 266 <filename>/etc/sysconfig/network</filename>, and 267 <filename>/etc/sysconfig/ifconfig.eth0</filename>. 263 <phrase revision="systemd"> 264 <filename>/etc/shadow</filename>, and 265 <filename>/etc/ld.so.conf</filename>. 266 </phrase> 267 <phrase revision="sysv"> 268 <filename>/etc/shadow</filename>, 269 <filename>/etc/ld.so.conf</filename>, 270 <filename>/etc/sysconfig/rc.site</filename>, 271 <filename>/etc/sysconfig/network</filename>, and 272 <filename>/etc/sysconfig/ifconfig.eth0</filename>. 273 </phrase> 268 274 </para> 269 275 … … 272 278 configuration.</para> 273 279 274 <note><para>There have been some reports of issues when copying between 275 similar but not identical architectures. For instancethe instruction set276 for Intel architectures is not identical with AMD processorsand later277 versions of some processors may have instructions notavailable in280 <note><para>There have been some reports of issues when copying between 281 similar but not identical architectures. For instance, the instruction set 282 for an Intel system is not identical with an AMD processor and later 283 versions of some processors may have instructions that are unavailable in 278 284 earlier versions.</para></note> 279 285 -
chapter06/procps.xml
r11ebea6 r1118b17 43 43 <para>Now prepare procps-ng for compilation:</para> 44 44 45 <screen ><userinput remap="configure">./configure --prefix=/usr \45 <screen revision="sysv"><userinput remap="configure">./configure --prefix=/usr \ 46 46 --exec-prefix= \ 47 47 --libdir=/usr/lib \ … … 49 49 --disable-static \ 50 50 --disable-kill</userinput></screen> 51 52 <screen revision="systemd"><userinput remap="configure">./configure --prefix=/usr \ 53 --exec-prefix= \ 54 --libdir=/usr/lib \ 55 --docdir=/usr/share/doc/procps-ng-&procps-ng-version; \ 56 --disable-static \ 57 --disable-kill \ 58 --with-systemd</userinput></screen> 51 59 52 60 <variablelist> -
chapter06/readline.xml
r11ebea6 r1118b17 107 107 <seglistitem> 108 108 <seg>libhistory.so and libreadline.so</seg> 109 <seg>/usr/include/readline and109 <seg>/usr/include/readline, /usr/share/readline, and 110 110 /usr/share/doc/readline-&readline-version;</seg> 111 111 </seglistitem> -
chapter06/systemd.xml
r11ebea6 r1118b17 18 18 19 19 <indexterm zone="ch-system-systemd"> 20 <primary sortas="a- Systemd">Systemd</primary>20 <primary sortas="a-systemd">systemd</primary> 21 21 </indexterm> 22 22 … … 24 24 <title/> 25 25 26 <para>The Systemd package contains programs for controlling the startup,26 <para>The systemd package contains programs for controlling the startup, 27 27 running, and shutdown of the system.</para> 28 28 … … 39 39 40 40 <sect2 role="installation"> 41 <title>Installation of Systemd</title> 42 43 <note><para>If systemd is not desired at all, it can be skipped. However a 44 udev replacement must be installed. See the hint at <ulink 45 url="http://www.linuxfromscratch.org/hints/downloads/files/eudev-alt-hint.txt"/> 46 to find procedures to install 47 <application>eudev</application>.</para></note> 48 49 <para>First, create a file to allow Systemd to build when using Util-Linux 50 built in Chapter 5:</para> 41 <title>Installation of systemd</title> 42 43 <para>First, fix a build error when using Util-Linux built in 44 Chapter 5:</para> 45 46 <screen><userinput remap="pre">sed -i "s:blkid/::" $(grep -rl "blkid/blkid.h")</userinput></screen> 47 48 <para>Apply the following patch so that compat 49 <command>pkg-config</command> files get installed without installing compat 50 libs which are useless on LFS:</para> 51 52 <screen><userinput remap="pre">patch -Np1 -i ../&systemd-compat-patch;</userinput></screen> 53 54 <para>Disable two tests that always fail:</para> 55 56 <screen><userinput remap="pre">sed -e 's@test/udev-test.pl @@' \ 57 -e 's@test-copy$(EXEEXT) @@' \ 58 -i Makefile.in</userinput></screen> 59 60 <para>Rebuild generated files after modifying Makefile.am and 61 Makefile.in:</para> 62 63 <screen><userinput remap="pre">autoreconf -fi</userinput></screen> 64 65 <para>Create a file to allow systemd to build when using Util-Linux 66 built in Chapter 5, to disable LTO by default, and to build without 67 xlstproc:</para> 51 68 52 69 <screen><userinput remap="pre">cat > config.cache << "EOF" 53 70 <literal>KILL=/bin/kill 71 MOUNT_PATH=/bin/mount 72 UMOUNT_PATH=/bin/umount 54 73 HAVE_BLKID=1 55 74 BLKID_LIBS="-lblkid" 56 75 BLKID_CFLAGS="-I/tools/include/blkid" 57 cc_cv_CFLAGS__flto=no</literal> 76 HAVE_LIBMOUNT=1 77 MOUNT_LIBS="-lmount" 78 MOUNT_CFLAGS="-I/tools/include/libmount" 79 cc_cv_CFLAGS__flto=no 80 XSLTPROC="/usr/bin/xsltproc"</literal> 58 81 EOF</userinput></screen> 59 82 60 <para>Additionally, fix a build error when using Util-Linux built in 61 Chapter 5:</para> 62 63 <screen><userinput remap="pre">sed -i "s:blkid/::" $(grep -rl "blkid/blkid.h")</userinput></screen> 64 65 <para>Apply a patch so that compat <command>pkg-config</command> files get 66 installed without installing compat libs which are useless on LFS:</para> 67 68 <screen><userinput remap="pre">patch -Np1 -i ../&systemd-compat-patch;</userinput></screen> 69 70 <para>Prepare Systemd for compilation:</para> 71 72 <screen><userinput remap="configure">./configure --prefix=/usr \ 73 --sysconfdir=/etc \ 74 --localstatedir=/var \ 75 --config-cache \ 76 --with-rootprefix= \ 77 --with-rootlibdir=/lib \ 78 --enable-split-usr \ 79 --disable-gudev \ 80 --without-python \ 81 --docdir=/usr/share/doc/systemd-&systemd-version; \ 82 --with-dbuspolicydir=/etc/dbus-1/system.d \ 83 --with-dbusinterfacedir=/usr/share/dbus-1/interfaces \ 84 --with-dbussessionservicedir=/usr/share/dbus-1/services \ 85 --with-dbussystemservicedir=/usr/share/dbus-1/system-services</userinput></screen> 83 <para>LTO is disabled by default because it causes 84 <command>systemd</command> and other auxiliary programs to link to 85 <filename class="libraryfile">libgcc_s.so</filename>, slows the build down 86 and makes the compiled code larger.</para> 87 88 <para>Prepare systemd for compilation:</para> 89 90 <screen><userinput remap="configure">./configure --prefix=/usr \ 91 --sysconfdir=/etc \ 92 --localstatedir=/var \ 93 --config-cache \ 94 --with-rootprefix= \ 95 --with-rootlibdir=/lib \ 96 --enable-split-usr \ 97 --disable-firstboot \ 98 --disable-ldconfig \ 99 --disable-sysusers \ 100 --without-python \ 101 --docdir=/usr/share/doc/systemd-&systemd-version;</userinput></screen> 86 102 87 103 <variablelist> … … 109 125 <term><parameter>--enable-split-usr</parameter></term> 110 126 <listitem> 111 <para>This switch ensures that Systemd will work on127 <para>This switch ensures that systemd will work on 112 128 systems where /bin, /lib and /sbin directories are not 113 129 symlinks to their /usr counterparts.</para> … … 116 132 117 133 <varlistentry> 118 <term><parameter>--disable-gudev --without-python</parameter></term> 119 <listitem> 120 <para>These switches disable optional features because 121 LFS does not provide their dependencies.</para> 134 <term><parameter>--without-python</parameter></term> 135 <listitem> 136 <para>This switch prevents <command>configure</command> 137 from trying to use Python which isn't built 138 in LFS.</para> 122 139 </listitem> 123 140 </varlistentry> 124 141 125 142 <varlistentry> 126 <term><parameter>--with-dbus*</parameter></term> 127 <listitem> 128 <para>These switches ensure that D-Bus configuratil files 129 get installed in the correct locations.</para> 143 <term><parameter>--disable-firstboot</parameter></term> 144 <listitem> 145 <para>This switch prevents installation of systemd 146 services responsible for setting up the system for 147 the first time. They are not useful for LFS because 148 everything is done manually.</para> 149 </listitem> 150 </varlistentry> 151 152 <varlistentry> 153 <term><parameter>--disable-ldconfig</parameter></term> 154 <listitem> 155 <para>This switch prevents installation of a systemd 156 unit that runs <command>ldconfig</command> at 157 boot, making the boot time longer. Remove it if the 158 described feature is desired, even though it's not 159 useful for source distributions such as LFS.</para> 160 </listitem> 161 </varlistentry> 162 163 <varlistentry> 164 <term><parameter>--disable-sysusers</parameter></term> 165 <listitem> 166 <para>This switch prevents installation of systemd 167 services responsible for setting up the 168 <filename>/etc/group</filename> and 169 <filename>/etc/passwd</filename> files. Both files 170 were created early in this chapter.</para> 130 171 </listitem> 131 172 </varlistentry> … … 137 178 <screen><userinput remap="make">make LIBRARY_PATH=/tools/lib</userinput></screen> 138 179 139 <para>First prevent few broken test cases from running:</para> 140 141 <screen><userinput remap="test">sed -e "s:test/udev-test.pl::g" \ 142 -e "s:test-bus-cleanup\$(EXEEXT) ::g" \ 143 -e "s:test-bus-gvariant\$(EXEEXT) ::g" \ 144 -i Makefile</userinput></screen> 145 146 <para>To test the results, issue:</para> 147 148 <screen><userinput remap="test">make -k check</userinput></screen> 149 150 <para>Note that some tests might fail because the test are being run in a 151 chroot environment. For full test coverage, the test suite should be run 152 from a system booted using Systemd.</para> 180 <para>This package has a test suite, but it can only be run after the 181 package has been installed.</para> 153 182 154 183 <para>Install the package:</para> … … 156 185 <screen><userinput remap="install">make LD_LIBRARY_PATH=/tools/lib install</userinput></screen> 157 186 158 <para>Move NSS myhostname library to <filename 159 class="directory">/lib</filename>:</para> 160 161 <screen><userinput remap="install">mv -v /usr/lib/libnss_myhostname.so.2 /lib</userinput></screen> 187 <para>Move NSS libraries to <filename class="directory">/lib</filename>:</para> 188 189 <screen><userinput remap="install">mv -v /usr/lib/libnss_{myhostname,mymachines,resolve}.so.2 /lib</userinput></screen> 162 190 163 191 <para>Remove an unnecessary directory:</para> … … 165 193 <screen><userinput remap="install">rm -rfv /usr/lib/rpm</userinput></screen> 166 194 167 <para>Create the Sysvinit compatibility symlinks, and move some man pages 168 and a library that conflict with <xref linkend="ch-system-sysvinit"/> so 169 both systems can be installed side-by-side:</para> 195 <para>Create the Sysvinit compatibility symlinks, so systemd is used 196 as the default init system:</para> 170 197 171 198 <screen><userinput remap="install">for tool in runlevel reboot shutdown poweroff halt telinit; do 172 ln -sfv ../bin/systemctl /sbin/${tool}-systemd 173 mv -v /usr/share/man/man8/${tool}.8 /usr/share/man/man8/${tool}-systemd.8 199 ln -sfv ../bin/systemctl /sbin/${tool} 174 200 done 175 176 ln -sfv ../lib/systemd/systemd /sbin/init-systemd 177 mv -v /etc/init.d /etc/init.d-systemd</userinput></screen> 178 201 ln -sfv ../lib/systemd/systemd /sbin/init</userinput></screen> 202 203 <!-- 179 204 <para>Remove a reference to a non-existent group:</para> 180 205 181 206 <screen><userinput remap="install">sed -i "s:0775 root lock:0755 root root:g" /usr/lib/tmpfiles.d/legacy.conf</userinput></screen> 207 --> 182 208 183 209 <para>Create the <filename>/etc/machine-id</filename> file needed by 184 Journald:</para>210 <command>systemd-journald</command>:</para> 185 211 186 212 <screen><userinput remap="install">systemd-machine-id-setup</userinput></screen> 187 213 188 <para>Finally install some LFS specific udev rules:</para> 189 190 <screen><userinput remap="install">tar -xf ../&udev-lfs-version;.tar.bz2 191 make -f &udev-lfs-version;/Makefile.lfs install</userinput></screen> 214 <para>Since the testsuite largely depends on the host system kernel 215 configuration, some tests may fail. It also needs a modification in 216 order not to look for a program that will be installed by Util-Linux 217 package later in this chapter. To test the results, issue:</para> 218 219 <screen><userinput remap="test">sed -i "s:minix:ext4:g" src/test/test-path-util.c 220 make LD_LIBRARY_PATH=/tools/lib -k check</userinput></screen> 192 221 193 222 </sect2> 194 223 195 224 <sect2 id="contents-systemd" role="content"> 196 <title>Contents of Systemd</title>225 <title>Contents of systemd</title> 197 226 198 227 <segmentedlist> … … 202 231 203 232 <seglistitem> 204 <seg>bootctl, busctl, halt, hostnamectl, init, journalctl, kernel-install, 205 localectl, loginctl, machinectl, poweroff, reboot, runlevel, shutdown, 206 systemctl, systemd-analyze, systemd-ask-password, systemd-cat, systemd-cgls, 207 systemd-cgtop, systemd-coredumpctl, systemd-delta, systemd-detect-virt, 208 systemd-inhibit, systemd-machine-id-setup, systemd-notify, systemd-nspawn, 209 systemd-run, systemd-stdio-bridge, systemd-tmpfiles, systemd-tty-ask-password-agent, 233 <seg>bootctl, busctl, coredumpctl, halt, hostnamectl, init, journalctl, 234 kernel-install, localectl, loginctl, machinectl, networkctl, poweroff, 235 reboot, runlevel, shutdown, systemctl, systemd-analyze, 236 systemd-ask-password, systemd-cat, systemd-cgls, systemd-cgtop, 237 systemd-delta, systemd-detect-virt, systemd-escape, systemd-hwdb, 238 systemd-inhibit, systemd-machine-id-setup, systemd-notify, 239 systemd-nspawn, systemd-path, systemd-resolve, systemd-run, 240 systemd-stdio-bridge, systemd-tmpfiles, systemd-tty-ask-password-agent, 210 241 telinit, timedatectl, and udevadm</seg> 211 212 <seg>libnss_myhostname.so.2, libsystemd.so,libudev.so</seg>242 <seg>libnss_myhostname.so.2, libnss_mymachines.so.2, 243 libnss_resolve.so.2, libsystemd.so, and libudev.so</seg> 213 244 <seg>/etc/binfmt.d, /etc/init.d, /etc/kernel, /etc/modules-load.d, 214 245 /etc/sysctl.d, /etc/systemd, /etc/tmpfiles.d, /etc/udev, … … 216 247 /usr/lib/binfmt.d, /usr/lib/kernel, /usr/lib/modules-load.d, 217 248 /usr/lib/sysctl.d, /usr/lib/systemd, /usr/lib/tmpfiles.d, 218 /usr/share/doc/systemd-&systemd-version;, /usr/share/ systemd,219 / var/lib/systemd,/var/log/journal</seg>249 /usr/share/doc/systemd-&systemd-version;, /usr/share/factory, 250 /usr/share/systemd, /var/lib/systemd, and /var/log/journal</seg> 220 251 </seglistitem> 221 252 </segmentedlist> … … 229 260 <term><command>bootctl</command></term> 230 261 <listitem> 231 <para>used to query the firmware and boot manager settings .</para>262 <para>used to query the firmware and boot manager settings</para> 232 263 <indexterm zone="ch-system-systemd bootctl"> 233 264 <primary sortas="b-bootctl">bootctl</primary> … … 239 270 <term><command>busctl</command></term> 240 271 <listitem> 241 <para> used to introspect and monitor the D-Bus bus.</para>272 <para>Used to introspect and monitor the D-Bus bus</para> 242 273 <indexterm zone="ch-system-systemd busctl"> 243 274 <primary sortas="b-busctl">busctl</primary> 275 </indexterm> 276 </listitem> 277 </varlistentry> 278 279 <varlistentry id="coredumpctl"> 280 <term><command>coredumpctl</command></term> 281 <listitem> 282 <para>Used to retrieve coredumps from the systemd Journal</para> 283 <indexterm zone="ch-system-systemd coredumpctl"> 284 <primary sortas="b-coredumpctl">coredumpctl</primary> 244 285 </indexterm> 245 286 </listitem> … … 253 294 then it tells the kernel to halt the system; it notes in the 254 295 file <filename>/var/log/wtmp</filename> that the system is being 255 brought down .</para>296 brought down</para> 256 297 <indexterm zone="ch-system-systemd halt"> 257 298 <primary sortas="b-halt">halt</primary> … … 263 304 <term><command>hostnamectl</command></term> 264 305 <listitem> 265 <para> used to query and change the system hostname and related266 settings .</para>306 <para>Used to query and change the system hostname and related 307 settings</para> 267 308 <indexterm zone="ch-system-systemd hostnamectl"> 268 309 <primary sortas="b-hostnamectl">hostnamectl</primary> … … 276 317 <para>The first process to be started when the kernel has initialized 277 318 the hardware which takes over the boot process and starts all the 278 proceses it is instructed to .</para>319 proceses it is instructed to</para> 279 320 <indexterm zone="ch-system-systemd init"> 280 321 <primary sortas="b-init">init</primary> … … 286 327 <term><command>journalctl</command></term> 287 328 <listitem> 288 <para> used to query the contents of the Systemd Journal.</para>329 <para>Used to query the contents of the systemd Journal</para> 289 330 <indexterm zone="ch-system-systemd journalctl"> 290 331 <primary sortas="b-journalctl">journalctl</primary> … … 296 337 <term><command>kernel-install</command></term> 297 338 <listitem> 298 <para> used to add and remove kernel and initramfs images to and299 from /boot .</para>339 <para>Used to add and remove kernel and initramfs images to and 340 from /boot</para> 300 341 <indexterm zone="ch-system-systemd kernel-install"> 301 342 <primary sortas="b-kernel-install">kernel-install</primary> … … 307 348 <term><command>localectl</command></term> 308 349 <listitem> 309 <para> used to query and change the system locale and keyboard layout310 settings .</para>350 <para>Used to query and change the system locale and keyboard layout 351 settings</para> 311 352 <indexterm zone="ch-system-systemd localectl"> 312 353 <primary sortas="b-localectl">localectl</primary> … … 318 359 <term><command>loginctl</command></term> 319 360 <listitem> 320 <para> used to introspect and control the state of the Systemd Login321 Manager .</para>361 <para>Used to introspect and control the state of the systemd Login 362 Manager</para> 322 363 <indexterm zone="ch-system-systemd loginctl"> 323 364 <primary sortas="b-loginctl">loginctl</primary> … … 329 370 <term><command>machinectl</command></term> 330 371 <listitem> 331 <para> used to introspect and control the state of the Systemd Virtual372 <para>Used to introspect and control the state of the systemd Virtual 332 373 Machine and Container Registration Manager</para> 333 374 <indexterm zone="ch-system-systemd machinectl"> … … 337 378 </varlistentry> 338 379 380 <varlistentry id="networkctl"> 381 <term><command>networkctl</command></term> 382 <listitem> 383 <para>Used to introspect the state of the network links as seen by 384 systemd-networkd</para> 385 <indexterm zone="ch-system-systemd networkctl"> 386 <primary sortas="b-networkctl">networkctl</primary> 387 </indexterm> 388 </listitem> 389 </varlistentry> 390 339 391 <varlistentry id="poweroff"> 340 392 <term><command>poweroff</command></term> 341 393 <listitem> 342 394 <para>Tells the kernel to halt the system and switch off the computer 343 (see <command>halt</command>) .</para>395 (see <command>halt</command>)</para> 344 396 <indexterm zone="ch-system-systemd poweroff"> 345 397 <primary sortas="b-poweroff">poweroff</primary> … … 352 404 <listitem> 353 405 <para>Tells the kernel to reboot the system (see 354 <command>halt</command>) .</para>406 <command>halt</command>)</para> 355 407 <indexterm zone="ch-system-systemd reboot"> 356 408 <primary sortas="b-reboot">reboot</primary> … … 363 415 <listitem> 364 416 <para>Reports the previous and the current run-level, as noted in the 365 last run-level record in <filename>/var/run/utmp</filename> .</para>417 last run-level record in <filename>/var/run/utmp</filename></para> 366 418 <indexterm zone="ch-system-systemd runlevel"> 367 419 <primary sortas="b-runlevel">runlevel</primary> … … 374 426 <listitem> 375 427 <para>Brings the system down in a secure way, signaling all processes 376 and notifying all logged-in users .</para>428 and notifying all logged-in users</para> 377 429 <indexterm zone="ch-system-systemd shutdown"> 378 430 <primary sortas="b-shutdown">shutdown</primary> … … 384 436 <term><command>systemctl</command></term> 385 437 <listitem> 386 <para> used to introspect and control the state of the Systemd system and387 service manager.</para>438 <para>Used to introspect and control the state of the systemd system 439 and service manager</para> 388 440 <indexterm zone="ch-system-systemd systemctl"> 389 441 <primary sortas="b-systemctl">systemctl</primary> … … 395 447 <term><command>systemd-analyze</command></term> 396 448 <listitem> 397 <para> used to determine system boot-up performance of the current boot.398 </para>449 <para>Used to determine system boot-up performance of the current 450 boot</para> 399 451 <indexterm zone="ch-system-systemd systemd-analyze"> 400 452 <primary sortas="b-systemd-analyze">systemd-analyze</primary> … … 406 458 <term><command>systemd-ask-password</command></term> 407 459 <listitem> 408 <para> used to query a system password or passphrase from the user, using a409 question message specified on the command line.</para>460 <para>Used to query a system password or passphrase from the user, 461 using a question message specified on the command line</para> 410 462 <indexterm zone="ch-system-systemd systemd-ask-password"> 411 463 <primary sortas="b-systemd-ask-password">systemd-ask-password</primary> … … 417 469 <term><command>systemd-cat</command></term> 418 470 <listitem> 419 <para> used to connect STDOUT and STDERR of a process with the Journal.471 <para>Used to connect STDOUT and STDERR of a process with the Journal 420 472 </para> 421 473 <indexterm zone="ch-system-systemd systemd-cat"> … … 428 480 <term><command>systemd-cgls</command></term> 429 481 <listitem> 430 <para> recursively shows the contents of the selected Linux control group431 hierarchy in a tree.</para>482 <para>Recursively shows the contents of the selected Linux control 483 group hierarchy in a tree</para> 432 484 <indexterm zone="ch-system-systemd systemd-cgls"> 433 485 <primary sortas="b-systemd-cgls">systemd-cgls</primary> … … 439 491 <term><command>systemd-cgtop</command></term> 440 492 <listitem> 441 <para> shows the top control groups of the local Linux control group hierarchy,442 ordered by their CPU, memory and disk I/O load.</para>493 <para>Shows the top control groups of the local Linux control group 494 hierarchy, ordered by their CPU, memory and disk I/O load</para> 443 495 <indexterm zone="ch-system-systemd systemd-cgtop"> 444 496 <primary sortas="b-systemd-cgtop">systemd-cgtop</primary> … … 447 499 </varlistentry> 448 500 449 <varlistentry id="systemd-coredumpctl">450 <term><command>systemd-coredumpctl</command></term>451 <listitem>452 <para>used to retrieve coredumps from the Systemd Journal</para>453 <indexterm zone="ch-system-systemd systemd-coredumpctl">454 <primary sortas="b-systemd-coredumpctl">systemd-coredumpctl</primary>455 </indexterm>456 </listitem>457 </varlistentry>458 459 501 <varlistentry id="systemd-delta"> 460 502 <term><command>systemd-delta</command></term> 461 503 <listitem> 462 <para> used to identify and compare configuration files in504 <para>Used to identify and compare configuration files in 463 505 <filename class="directory">/etc</filename> that override default 464 counterparts in <filename class="directory">/usr</filename> .</para>506 counterparts in <filename class="directory">/usr</filename></para> 465 507 <indexterm zone="ch-system-systemd systemd-delta"> 466 508 <primary sortas="b-systemd-delta">systemd-delta</primary> … … 472 514 <term><command>systemd-detect-virt</command></term> 473 515 <listitem> 474 <para> detects execution in a virtualized environment.</para>516 <para>Detects execution in a virtualized environment</para> 475 517 <indexterm zone="ch-system-systemd systemd-detect-virt"> 476 518 <primary sortas="b-systemd-detect-virt">systemd-detect-virt</primary> … … 479 521 </varlistentry> 480 522 523 <varlistentry id="systemd-escape"> 524 <term><command>systemd-escape</command></term> 525 <listitem> 526 <para>Used to escape strings for inclusion in systemd unit 527 names</para> 528 <indexterm zone="ch-system-systemd systemd-escape"> 529 <primary sortas="b-systemd-escape">systemd-escape</primary> 530 </indexterm> 531 </listitem> 532 </varlistentry> 533 534 <varlistentry id="systemd-hwdb"> 535 <term><command>systemd-hwdb</command></term> 536 <listitem> 537 <para>Used to manage hardware database (hwdb)</para> 538 <indexterm zone="ch-system-systemd systemd-hwdb"> 539 <primary sortas="b-systemd-hwdb">systemd-hwdb</primary> 540 </indexterm> 541 </listitem> 542 </varlistentry> 543 481 544 <varlistentry id="systemd-inhibit"> 482 545 <term><command>systemd-inhibit</command></term> 483 546 <listitem> 484 <para> used to execute a program with a shutdown, sleep or idle inhibitor lock485 taken.</para>547 <para>Used to execute a program with a shutdown, sleep or idle 548 inhibitor lock taken</para> 486 549 <indexterm zone="ch-system-systemd systemd-inhibit"> 487 550 <primary sortas="b-systemd-inhibit">systemd-inhibit</primary> … … 493 556 <term><command>systemd-machine-id-setup</command></term> 494 557 <listitem> 495 <para> used by system installer tools to initialize the machine ID stored in496 <filename>/etc/machine-id</filename> at install time with a randomly497 generated ID.</para>558 <para>Used by system installer tools to initialize the machine ID 559 stored in <filename>/etc/machine-id</filename> at install time with a 560 randomly generated ID</para> 498 561 <indexterm zone="ch-system-systemd systemd-machine-id-setup"> 499 562 <primary sortas="b-systemd-machine-id-setup">systemd-machine-id-setup</primary> … … 505 568 <term><command>systemd-notify</command></term> 506 569 <listitem> 507 <para> used by daemon scripts to notify the init system about status changes.508 </para>570 <para>Used by daemon scripts to notify the init system about status 571 changes</para> 509 572 <indexterm zone="ch-system-systemd systemd-notify"> 510 573 <primary sortas="b-systemd-notify">systemd-notify</primary> … … 516 579 <term><command>systemd-nspawn</command></term> 517 580 <listitem> 518 <para>used to run a command or OS in a light-weight namespace container.</para> 581 <para>Used to run a command or OS in a light-weight namespace 582 container</para> 519 583 <indexterm zone="ch-system-systemd systemd-nspawn"> 520 584 <primary sortas="b-systemd-nspawn">systemd-nspawn</primary> … … 523 587 </varlistentry> 524 588 589 <varlistentry id="systemd-path"> 590 <term><command>systemd-path</command></term> 591 <listitem> 592 <para>Used to query system and user paths</para> 593 <indexterm zone="ch-system-systemd systemd-path"> 594 <primary sortas="b-systemd-path">systemd-path</primary> 595 </indexterm> 596 </listitem> 597 </varlistentry> 598 599 <varlistentry id="systemd-resolve"> 600 <term><command>systemd-resolve</command></term> 601 <listitem> 602 <para>Used to resolve domain names, IPV4 and IPv6 addresses, DNS 603 resource records, and services</para> 604 <indexterm zone="ch-system-systemd systemd-resolve"> 605 <primary sortas="b-systemd-resolve">systemd-resolve</primary> 606 </indexterm> 607 </listitem> 608 </varlistentry> 609 525 610 <varlistentry id="systemd-run"> 526 611 <term><command>systemd-run</command></term> 527 612 <listitem> 528 <para> used to create and start a transient .service or a .scope unit and529 run the specified command in it.</para>613 <para>Used to create and start a transient .service or a .scope unit 614 and run the specified command in it</para> 530 615 <indexterm zone="ch-system-systemd systemd-run"> 531 616 <primary sortas="b-systemd-run">systemd-run</primary> … … 534 619 </varlistentry> 535 620 536 <!--<varlistentry id="systemd-stdio-bridge">621 <!-- <varlistentry id="systemd-stdio-bridge"> 537 622 <term><command>systemd-stdio-bridge</command></term> 538 623 <listitem> … … 547 632 <term><command>systemd-tmpfiles</command></term> 548 633 <listitem> 549 <para>creates, deletes and cleans up volatile and temporary files and directories, 550 based on the configuration file format and location specified in 551 <filename class="directory">tmpfiles.d</filename> directories.</para> 634 <para>Creates, deletes and cleans up volatile and temporary files and 635 directories, based on the configuration file format and location 636 specified in 637 <filename class="directory">tmpfiles.d</filename> directories</para> 552 638 <indexterm zone="ch-system-systemd systemd-tmpfiles"> 553 639 <primary sortas="b-systemd-tmpfiles">systemd-tmpfiles</primary> … … 559 645 <term><command>systemd-tty-ask-password-agent</command></term> 560 646 <listitem> 561 <para> used to list or process pending Systemd password requests</para>647 <para>Used to list or process pending systemd password requests</para> 562 648 <indexterm zone="ch-system-systemd systemd-tty-ask-password-agent"> 563 649 <primary sortas="b-systemd-tty-ask-password-agent">systemd-tty-ask-password-agent</primary> … … 569 655 <term><command>telinit</command></term> 570 656 <listitem> 571 <para>Tells <command>init</command> which run-level to change to.</para> 657 <para>Tells <command>init</command> which run-level to change 658 to</para> 572 659 <indexterm zone="ch-system-systemd telinit"> 573 660 <primary sortas="b-telinit">telinit</primary> … … 579 666 <term><command>timedatectl</command></term> 580 667 <listitem> 581 <para> used to query and change the system clock and its settings.668 <para>Used to query and change the system clock and its settings 582 669 </para> 583 670 <indexterm zone="ch-system-systemd timedatectl"> … … 593 680 provides info from the Udev database, monitors uevents, waits for 594 681 uevents to finish, tests Udev configuration, and triggers uevents 595 for a given device .</para>682 for a given device</para> 596 683 <indexterm zone="ch-system-systemd udevadm"> 597 684 <primary sortas="b-udevadm">udevadm</primary> … … 603 690 <term><filename class="libraryfile">libsystemd</filename></term> 604 691 <listitem> 605 <para> Systemd utility library.</para>692 <para>systemd utility library</para> 606 693 <indexterm zone="ch-system-systemd libsystemd"> 607 694 <primary sortas="c-libsystemd">libsystemd</primary> … … 613 700 <term><filename class="libraryfile">libudev</filename></term> 614 701 <listitem> 615 <para>A library to access Udev device information .</para>702 <para>A library to access Udev device information</para> 616 703 <indexterm zone="ch-system-systemd libudev"> 617 704 <primary sortas="c-libudev">libudev</primary> -
chapter06/util-linux.xml
r11ebea6 r1118b17 63 63 <para>Prepare Util-linux for compilation:</para> 64 64 65 <screen ><userinput remap="configure">./configure ADJTIME_PATH=/var/lib/hwclock/adjtime \65 <screen revision="sysv"><userinput remap="configure">./configure ADJTIME_PATH=/var/lib/hwclock/adjtime \ 66 66 --docdir=/usr/share/doc/util-linux-&util-linux-version; \ 67 67 --disable-chfn-chsh \ … … 76 76 --without-systemd \ 77 77 --without-systemdsystemunitdir</userinput></screen> 78 79 <screen revision="systemd"><userinput remap="configure">./configure ADJTIME_PATH=/var/lib/hwclock/adjtime \ 80 --docdir=/usr/share/doc/util-linux-&util-linux-version; \ 81 --disable-chfn-chsh \ 82 --disable-login \ 83 --disable-nologin \ 84 --disable-su \ 85 --disable-setpriv \ 86 --disable-runuser \ 87 --disable-pylibmount \ 88 --disable-static \ 89 --without-python</userinput></screen> 78 90 79 91 <para>The --disable and --without options prevent warnings about -
chapter08/fstab.xml
r11ebea6 r1118b17 20 20 file systems table like this:</para> 21 21 22 <screen ><userinput>cat > /etc/fstab << "EOF"22 <screen revision="sysv"><userinput>cat > /etc/fstab << "EOF" 23 23 <literal># Begin /etc/fstab 24 24 … … 37 37 EOF</userinput></screen> 38 38 39 <screen revision="systemd"><userinput>cat > /etc/fstab << "EOF" 40 <literal># Begin /etc/fstab 41 42 # file system mount-point type options dump fsck 43 # order 44 45 /dev/<replaceable><xxx></replaceable> / <replaceable><fff></replaceable> defaults 1 1 46 /dev/<replaceable><yyy></replaceable> swap swap pri=1 0 0 47 48 # End /etc/fstab</literal> 49 EOF</userinput></screen> 50 39 51 <para>Replace <replaceable><xxx></replaceable>, 40 52 <replaceable><yyy></replaceable>, and <replaceable><fff></replaceable> … … 44 56 class="filesystem">ext4</systemitem>. For details on the six 45 57 fields in this file, see <command>man 5 fstab</command>.</para> 46 47 <!--48 <para>The <filename class="directory">/dev/shm</filename> mount point49 for <systemitem class="filesystem">tmpfs</systemitem> is included to50 allow enabling POSIX-shared memory. The kernel must have the required51 support built into it for this to work (more about this is in the next52 section). Please note that very little software currently uses53 POSIX-shared memory. Therefore, consider the <filename54 class="directory">/dev/shm</filename> mount point optional. For more55 information, see56 <filename>Documentation/filesystems/tmpfs.txt</filename> in the kernel57 source tree.</para>58 -->59 58 60 59 <para>Filesystems with MS-DOS or Windows origin (i.e.: vfat, ntfs, smbfs, cifs, … … 97 96 There is no way to specify these settings for the 98 97 ntfs filesystem at kernel compilation time.</para> 99 <!-- Personally, I find it more foolproof to always specify the iocharset and100 codepage in /etc/fstab for MS-based filesystems - Alexander E. Patrakov -->101 98 102 99 <para>It is possible to make the ext3 filesystem reliable across power -
chapter08/grub.xml
r11ebea6 r1118b17 40 40 41 41 <note><para>Most newer systems now come with system firmware that is in 42 UEFI ( (Unified Extensible Firmware Interface) mode by default.To boot LFS42 UEFI (Unified Extensible Firmware Interface) mode by default. To boot LFS 43 43 on these systems using the instructions here, the UEFI Mode and Secure Boot 44 capabilities need to be turned off. 45 capabilities still enabled, but are not covered here. For details, see46 <ulink47 url="http://www.linuxfromscratch.org/hints/downloads/files/lfs-uefi.txt"> the48 lfs-uefi.txt hint</ulink> at44 capabilities need to be turned off. There are ways to boot with these 45 capabilities still enabled, but then are not covered here. For details, 46 see <ulink 47 url="http://www.linuxfromscratch.org/hints/downloads/files/lfs-uefi.txt"> 48 the lfs-uefi.txt hint</ulink> at 49 49 http://www.linuxfromscratch.org/hints/downloads/files/lfs-uefi.txt.</para></note> 50 50 -
chapter08/kernel.xml
r11ebea6 r1118b17 66 66 <ulink url="http://www.kroah.com/lkn/"/> </para> 67 67 68 <note><para>A good starting place for setting up the kernel configuration 69 is to run <command>make defconfig</command>. This will set the base 70 configuration to a good state that takes your current system architecture 71 into account.</para> 72 73 <para>Be sure to configure the following features as shown:</para> 74 75 <screen role="nodump"> 68 <note> 69 70 <para>A good starting place for setting up the kernel configuration is to 71 run <command>make defconfig</command>. This will set the base 72 configuration to a good state that takes your current system architecture 73 into account.</para> 74 75 <para>Be sure to enable or disable following features or the system might 76 not work correctly or boot at all:</para> 77 78 <screen role="nodump" revision="sysv"> 76 79 Device Drivers ---> 77 80 Generic Driver Options ---> 78 81 [ ] Support for uevent helper [CONFIG_UEVENT_HELPER] 79 [*] Maintain a devtmpfs filesystem to mount at /dev [CONFIG_DEVTMPFS]</screen></note> 80 81 <para>There are several other options that may be desired depending 82 on the requirements for the system. For a list of options needed 83 for BLFS packages, see the <ulink 84 url="&lfs-root;blfs/view/&short-version;/longindex.html#kernel-config-index">BLFS 85 Index of Kernel Settings</ulink> 82 [*] Maintain a devtmpfs filesystem to mount at /dev [CONFIG_DEVTMPFS]</screen> 83 84 <screen role="nodump" revision="systemd"> 85 [*] open by fhandle syscalls [CONFIG_FHANDLE] 86 [ ] Auditing support [CONFIG_AUDIT] 87 [*] Control Group support [CONFIG_CGROUPS] 88 Processor type and features ---> 89 [*] Enable seccomp to safely compute untrusted bytecode [CONFIG_SECCOMP] 90 Networking support ---> 91 Networking options ---> 92 <*> The IPv6 protocol [CONFIG_IPV6] 93 Device Drivers ---> 94 Generic Driver Options ---> 95 [ ] Support for uevent helper [CONFIG_UEVENT_HELPER] 96 [*] Maintain a devtmpfs filesystem to mount at /dev [CONFIG_DEVTMPFS] 97 [ ] Fallback user-helper invocation for firmware loading [CONFIG_FW_LOADER_USER_HELPER] 98 Firmware Drivers ---> 99 [*] Export DMI identification via sysfs to userspace [CONFIG_DMIID] 100 File systems ---> 101 [*] Inotify support for userspace [CONFIG_INOTIFY_USER] 102 <*> Kernel automounter version 4 support (also supports v3) [CONFIG_AUTOFS4_FS] 103 Pseudo filesystems ---> 104 [*] Tmpfs POSIX Access Control Lists [CONFIG_TMPFS_POSIX_ACL] 105 [*] Tmpfs extended attributes [CONFIG_TMPFS_XATTR]</screen> 106 107 </note> 108 109 <note revision="systemd"> 110 <para>While "The IPv6 Protocol" is not strictly 111 required, it is highly recommended by the systemd developers.</para> 112 </note> 113 114 <para revision="sysv">There are several other options that may be desired 115 depending on the requirements for the system. For a list of options needed 116 for BLFS packages, see the <ulink 117 url="&lfs-root;blfs/view/&short-version;/longindex.html#kernel-config-index">BLFS 118 Index of Kernel Settings</ulink> 86 119 (&lfs-root;blfs/view/&short-version;/longindex.html#kernel-config-index).</para> 87 120 -
chapter09/reboot.xml
r11ebea6 r1118b17 74 74 <listitem><para>/root/.bash_profile </para></listitem> 75 75 <listitem><para>/root/.bashrc </para></listitem> 76 <listitem ><para>/etc/sysconfig/network </para></listitem>77 <listitem ><para>/etc/sysconfig/ifconfig.eth0 </para></listitem>76 <listitem revision="sysv"><para>/etc/sysconfig/network </para></listitem> 77 <listitem revision="sysv"><para>/etc/sysconfig/ifconfig.eth0 </para></listitem> 78 78 </itemizedlist> 79 79 </listitem> -
chapter09/theend.xml
r11ebea6 r1118b17 19 19 </indexterm> 20 20 21 <indexterm zone="ch-finish-theend" revision="systemd"> 22 <primary sortas="e-/etc/os-release">/etc/os-release</primary> 23 </indexterm> 24 21 25 <para>Well done! The new LFS system is installed! We wish you much 22 26 success with your shiny new custom-built Linux system.</para> 23 27 24 <para>It may be a good idea to create an <filename>/etc/lfs-release</filename> 25 file. By having this file, it is very easy for you (and for us if you need to 26 ask for help at some point) to find out which LFS version is installed on the 27 system. Create this file by running:</para> 28 <para revision="systemd">Create an <filename>/etc/os-release</filename> 29 file required by systemd:</para> 28 30 29 <screen><userinput>echo &version; > /etc/lfs-release</userinput></screen> 31 <screen revision="systemd"><userinput>cat > /etc/os-release << "EOF" 32 NAME="Linux From Scratch" 33 VERSION="&versiond;" 34 ID=lfs 35 PRETTY_NAME="Linux From Scratch &versiond;" 36 EOF</userinput></screen> 37 38 <para revision="sysv">It may be a good idea to create an 39 <filename>/etc/lfs-release</filename> file. By having this file, it is very 40 easy for you (and for us if you need to ask for help at some point) to find 41 out which LFS version is installed on the system. Create this file by 42 running:</para> 43 44 <screen revision="sysv"><userinput>echo &version; > /etc/lfs-release</userinput></screen> 45 46 <para revision="systemd">Creating the file 47 <filename>/etc/lfs-release</filename> is recommended for compatibility with 48 the non-systemd branch. By having this file, it is very easy for you (and for 49 us if you need to ask for help at some point) to find out which LFS version 50 is installed on the system. Create this file by running:</para> 51 52 <screen revision="systemd"><userinput>echo &version; > /etc/lfs-release</userinput></screen> 30 53 31 54 <para>It is also a good idea to create a file to show the status of your … … 33 56 this file, run:</para> 34 57 35 <screen ><userinput>cat > /etc/lsb-release << "EOF"58 <screen revision="sysv"><userinput>cat > /etc/lsb-release << "EOF" 36 59 DISTRIB_ID="Linux From Scratch" 37 60 DISTRIB_RELEASE="&version;" 61 DISTRIB_CODENAME="<your name here>" 62 DISTRIB_DESCRIPTION="Linux From Scratch" 63 EOF</userinput></screen> 64 65 <screen revision="systemd"><userinput>cat > /etc/lsb-release << "EOF" 66 DISTRIB_ID="Linux From Scratch" 67 DISTRIB_RELEASE="&versiond;" 38 68 DISTRIB_CODENAME="<your name here>" 39 69 DISTRIB_DESCRIPTION="Linux From Scratch" -
general.ent
r11ebea6 r1118b17 1 <!ENTITY version "SVN-20160516"> 2 <!ENTITY short-version "svn"> <!-- Used below in &blfs-book;. Change to x.y for release 3 but not -rc releases --> 1 <!ENTITY version "SVN-20160516-merge"> 2 <!ENTITY short-version "svn"> <!-- Used below in &blfs-book; 3 Change to x.y for release but not -rc releases --> 4 <!ENTITY generic-version "development"> <!-- Use "development" or "x.y[-pre{x}]" --> 5 6 <!ENTITY versiond "20160407-systemd-merge"> 7 <!ENTITY short-versiond "systemd"> 8 <!ENTITY generic-versiond "systemd"> 9 4 10 <!ENTITY releasedate "May 16, 2016"> 5 11 <!ENTITY copyrightdate "1999-2016"><!-- jhalfs needs a literal dash, not – --> 6 12 <!ENTITY milestone "7.10"> 7 <!ENTITY generic-version "development"> <!-- Use "development", "testing", or "x.y[-pre{x}]" -->8 13 9 14 <!ENTITY lfs-root "http://www.linuxfromscratch.org/"> … … 19 24 <!ENTITY errata "&lfs-root;lfs/errata/&generic-version;/"> 20 25 <!ENTITY min-kernel "2.6.32"> 21 26 27 <!ENTITY patches-rootd "&lfs-root;patches/lfs/&generic-versiond;/"> 28 <!ENTITY downloads-rootd "&lfs-root;lfs/downloads/&generic-versiond;/"> 29 <!ENTITY test-resultsd "&lfs-root;lfs/build-logs/&generic-versiond;/"> 30 <!ENTITY erratad "&lfs-root;lfs/errata/&generic-versiond;/"> 31 22 32 <!ENTITY lfs-ticket-root "http://wiki.linuxfromscratch.org/lfs/ticket/"> 23 33 -
packages.ent
r11ebea6 r1118b17 106 106 <!ENTITY coreutils-ch6-du "168 MB"> 107 107 <!ENTITY coreutils-ch6-sbu "2.6 SBU"> 108 109 <!ENTITY dbus-version "1.10.6"> 110 <!ENTITY dbus-size "1,908 KB"> 111 <!ENTITY dbus-url "http://dbus.freedesktop.org/releases/dbus/dbus-&dbus-version;.tar.gz"> 112 <!ENTITY dbus-md5 "26d0cf3a1c9782cb0e342101f0450440"> 113 <!ENTITY dbus-home "http://www.freedesktop.org/wiki/Software/dbus"> 114 <!ENTITY dbus-ch6-du "23 MB"> 115 <!ENTITY dbus-ch6-sbu "0.2 SBU"> 108 116 109 117 <!ENTITY dejagnu-version "1.6"> … … 542 550 <!ENTITY sysklogd-ch6-sbu "less than 0.1 SBU"> 543 551 552 <!ENTITY systemd-version "229"> 553 <!ENTITY systemd-size "3,844 KB"> 554 <!ENTITY systemd-url "http://anduin.linuxfromscratch.org/sources/other/systemd/systemd-&systemd-version;.tar.xz"> 555 <!ENTITY systemd-md5 "5d5115ee08affe005f821bc5ea3171e8"> 556 <!ENTITY systemd-home "http://www.freedesktop.org/wiki/Software/systemd/"> 557 <!ENTITY systemd-ch6-du "1.1 GB"> 558 <!ENTITY systemd-ch6-sbu "5.1 SBU"> 559 544 560 <!ENTITY sysvinit-version "2.88dsf"> 545 561 <!ENTITY sysvinit-size "108 KB"> -
patches.ent
r11ebea6 r1118b17 42 42 <!ENTITY sysvinit-consolidated-patch-md5 "0b7b5ea568a878fdcc4057b2bf36e5cb"> 43 43 <!ENTITY sysvinit-consolidated-patch-size "3.9 KB"> 44 45 <!ENTITY systemd-compat-patch "systemd-&systemd-version;-compat-1.patch"> 46 <!ENTITY systemd-compat-patch-md5 "8a9b70794ead5a87297d7ccd7a753d78"> 47 <!ENTITY systemd-compat-patch-size "12 KB"> 48 -
prologue/bookinfo.xml
r11ebea6 r1118b17 8 8 <bookinfo> 9 9 <title>Linux From Scratch</title> 10 <subtitle >Version &version;</subtitle>11 10 <subtitle revision='sysv' >Version &version; </subtitle> 11 <subtitle revision='systemd'>Version &versiond;</subtitle> 12 12 13 13 <authorgroup> … … 17 17 </author> 18 18 <author> 19 <firstname>Managing Editor isBruce</firstname>19 <firstname>Managing Editor: Bruce</firstname> 20 20 <surname>Dubbs</surname> 21 21 </author> 22 <author revision="systemd"> 23 <firstname>Editor: Douglas R.</firstname> 24 <surname>Reno</surname> 25 </author> 26 <author revision="systemd"> 27 <firstname>Editor: DJ</firstname> 28 <surname>Lucas</surname> 29 </author> 22 30 </authorgroup> 23 24 31 25 32 <copyright id="copyright"> … … 29 36 30 37 <legalnotice> 38 31 39 <para>Copyright © ©rightdate;, Gerard Beekmans</para> 32 40
Note:
See TracChangeset
for help on using the changeset viewer.