Ignore:
Timestamp:
02/12/2013 09:04:49 PM (11 years ago)
Author:
Matthew Burgess <matthew@…>
Branches:
7.5-systemd, 7.6-systemd, 7.7-systemd, 7.8-systemd, 7.9-systemd
Children:
fbee88e
Parents:
e0001a5
Message:

Added full build of Systemd including its remaining dependencies (attr, gperf, intltool, and libcap2).

git-svn-id: http://svn.linuxfromscratch.org/LFS/branches/systemd/BOOK@10125 4aa44e1e-78dd-0310-a6d2-fbcd4c07a689

File:
1 edited

Legend:

Unmodified
Added
Removed
  • chapter06/systemd.xml

    re0001a5 r686badf  
    66]>
    77
    8 <sect1 id="ch-system-udev" role="wrap">
    9   <?dbhtml filename="udev.html"?>
     8<sect1 id="ch-system-systemd" role="wrap">
     9  <?dbhtml filename="systemd.html"?>
    1010
    1111  <sect1info condition="script">
    12     <productname>udev</productname>
     12    <productname>systemd</productname>
    1313    <productnumber>&systemd-version;</productnumber>
    1414    <address>&systemd-url;</address>
    1515  </sect1info>
    1616
    17   <title>Udev-&systemd-version; (Extracted from systemd-&systemd-version;)</title>
    18 
    19   <indexterm zone="ch-system-udev">
    20     <primary sortas="a-Udev">Udev</primary>
     17  <title>Systemd-&systemd-version;</title>
     18
     19  <indexterm zone="ch-system-systemd">
     20    <primary sortas="a-Systemd">Systemd</primary>
    2121  </indexterm>
    2222
     
    2424    <title/>
    2525
    26     <para>The Udev package contains programs for dynamic creation of device
    27     nodes.  The development of udev has been merged with systemd, but
    28     most of systemd is incompatible with LFS.  Here we build and install just
    29     the needed udev files.</para>
     26    <para>The Systemd package contains programs for controlling the startup,
     27    running, and shutdown of the system.</para>
    3028
    3129    <segmentedlist>
     
    4139
    4240  <sect2 role="installation">
    43     <title>Installation of Udev</title>
    44 
    45     <note><para>This package is a little different from other packages.  The
    46     initial package that is extracted is
    47     <filename>systemd-&systemd-version;.tar.xz</filename> even though the
    48     application we are installing is udev. After changing to the
    49     systemd directory, follow the instructions below.</para></note>
    50 
    51     <para>The udev-lfs tarball contains LFS-specific files used to build
    52     Udev. Unpack it into the systemd source directory:</para>
    53 
    54 <screen><userinput remap="pre">tar -xvf ../&udev-lfs;.tar.bz2</userinput></screen>
     41    <title>Installation of Systemd</title>
     42
     43    <para>Prepare Systemd for compilation:</para>
     44
     45<screen><userinput remap="configure">./configure --prefix=/usr \
     46            --sysconfdir=/etc \
     47            --localstatedir=/var \
     48            --libexecdir=/usr/lib \
     49            --with-rootprefix= \
     50            --with-rootlibdir=/lib \
     51            --with-kbd-loadkeys=/bin/loadkeys \
     52            --with-kbd-setfont=/bin/setfont \
     53            --enable-split-usr \
     54            --disable-static \
     55            --disable-gudev \
     56            --without-python</userinput></screen>
    5557
    5658    <para>Compile the package:</para>
    5759
    58 <screen><userinput remap="make">make -f &udev-lfs;/Makefile.lfs</userinput></screen>
     60<screen><userinput remap="make">make</userinput></screen>
     61
     62    <para>To test the results, issue:</para>
     63
     64<screen><userinput remap="test">make check</userinput></screen>
    5965
    6066    <para>Install the package:</para>
    6167
    62 <screen><userinput remap="install">make -f &udev-lfs;/Makefile.lfs install</userinput></screen>
    63 
    64     <caution><para>There are several places within the
    65     <application>systemd</application> source code that have explicit directory
    66     paths embedded.  For instance, the binary version of the hardware
    67     database's path and file name used at run time,
    68     <filename>/etc/udev/hwdb.bin</filename>, cannot be changed without explict
    69     changes to the source code.</para></caution>
    70 
    71     <para>Now initialize the hardware database:</para>
    72 
    73 <screen><userinput remap="install">build/udevadm hwdb --update</userinput></screen>
    74 
    75     <para>Finally set up the persistent network udev rules.  This task will be
    76     explained in detail in <xref linkend='stable-net-names'/>.  Note that the
    77     <filename class='directory'>/sys</filename> and <filename
    78     class='directory'>/proc</filename> filesystems must be mounted in the
    79     chroot environment as explained at the beginning of this chapter for the
    80     following script to work.</para>
    81 
    82 <screen><userinput remap="install">bash &udev-lfs;/init-net-rules.sh</userinput></screen>
     68<screen><userinput remap="install">make install</userinput></screen>
     69
    8370  </sect2>
    8471
     
    8875    <segmentedlist>
    8976      <segtitle>Installed programs</segtitle>
    90       <segtitle>Installed libraries</segtitle>
    91       <segtitle>Installed directories</segtitle>
    9277
    9378      <seglistitem>
    94         <seg>accelerometer, ata_id, cdrom_id, collect, mtd_probe,
    95          scsi_id, v4l_id, udevadm, and udevd</seg>
    96 
    97         <seg>libudev.so</seg>
    98 
    99         <seg>/etc/udev, /lib/udev, /lib/firmware, /usr/share/doc/udev</seg>
     79        <seg>hostnamectl, journalctl, localectl, loginctl, systemctl,
     80             systemd-analyze, systemd-ask-password, systemd-cat,
     81             systemd-cgls, systemd-cgtop, systemd-coredumpctl,
     82             systemctl-delta, systemd-detect-virt, systemd-inhibit,
     83             systemd-machine-id-setup, systemd-notify, systemd-nspawn,
     84             systemd-stdio-bridge, systemd-tmpfiles,
     85             systemd-tty-ask-password-agent, timedatectl, udevadm</seg>
     86
    10087      </seglistitem>
    10188    </segmentedlist>
     
    10693      <?dbhtml list-presentation="table"?>
    10794
    108       <varlistentry id="ata_id">
    109         <term><command>ata_id</command></term>
    110         <listitem>
    111           <para>Provides Udev with a unique string and
    112           additional information (uuid, label) for an ATA drive</para>
    113           <indexterm zone="ch-system-udev ata_id">
    114             <primary sortas="b-ata_id">ata_id</primary>
    115           </indexterm>
    116         </listitem>
    117       </varlistentry>
    118 
    119       <varlistentry id="cdrom_id">
    120         <term><command>cdrom_id</command></term>
    121         <listitem>
    122           <para>Provides Udev with the capabilities of a
    123           CD-ROM or DVD-ROM drive</para>
    124           <indexterm zone="ch-system-udev cdrom_id">
    125             <primary sortas="b-cdrom_id">cdrom_id</primary>
    126           </indexterm>
    127         </listitem>
    128       </varlistentry>
    129 
    130       <varlistentry id="collect">
    131         <term><command>collect</command></term>
    132         <listitem>
    133           <para>Given an ID for the current uevent and a list of
    134           IDs (for all target uevents), registers the current ID
    135           and indicates whether all target IDs have been registered</para>
    136           <indexterm zone="ch-system-udev collect">
    137             <primary sortas="b-collect">collect</primary>
    138           </indexterm>
    139         </listitem>
    140       </varlistentry>
    141 
    142       <varlistentry id="scsi_id">
    143         <term><command>scsi_id</command></term>
    144         <listitem>
    145           <para>Provides Udev with a unique SCSI identifier
    146           based on the data returned from sending a SCSI INQUIRY command to
    147           the specified device</para>
    148           <indexterm zone="ch-system-udev scsi_id">
    149             <primary sortas="b-scsi_id">scsi_id</primary>
     95      <varlistentry id="hostnamectl">
     96        <term><command>hostnamectl</command></term>
     97        <listitem>
     98          <para>To be completed</para>
     99          <indexterm zone="ch-system-systemd hostnamectl">
     100            <primary sortas="b-hostnamectl">hostnamectl</primary>
     101          </indexterm>
     102        </listitem>
     103      </varlistentry>
     104
     105      <varlistentry id="journalctl">
     106        <term><command>journalctl</command></term>
     107        <listitem>
     108          <para>To be completed</para>
     109          <indexterm zone="ch-system-systemd journalctl">
     110            <primary sortas="b-journalctl">journalctl</primary>
     111          </indexterm>
     112        </listitem>
     113      </varlistentry>
     114
     115      <varlistentry id="localectl">
     116        <term><command>localectl</command></term>
     117        <listitem>
     118          <para>To be completed</para>
     119          <indexterm zone="ch-system-systemd localectl">
     120            <primary sortas="b-localectl">localectl</primary>
     121          </indexterm>
     122        </listitem>
     123      </varlistentry>
     124
     125      <varlistentry id="loginctl">
     126        <term><command>loginctl</command></term>
     127        <listitem>
     128          <para>To be completed</para>
     129          <indexterm zone="ch-system-systemd loginctl">
     130            <primary sortas="b-loginctl">loginctl</primary>
     131          </indexterm>
     132        </listitem>
     133      </varlistentry>
     134
     135      <varlistentry id="systemctl">
     136        <term><command>systemctl</command></term>
     137        <listitem>
     138          <para>To be completed</para>
     139          <indexterm zone="ch-system-systemd systemctl">
     140            <primary sortas="b-systemctl">systemctl</primary>
     141          </indexterm>
     142        </listitem>
     143      </varlistentry>
     144
     145      <varlistentry id="systemd-analyze">
     146        <term><command>systemd-analyze</command></term>
     147        <listitem>
     148          <para>To be completed</para>
     149          <indexterm zone="ch-system-systemd systemd-analyze">
     150            <primary sortas="b-systemd-analyze">systemd-analyze</primary>
     151          </indexterm>
     152        </listitem>
     153      </varlistentry>
     154
     155      <varlistentry id="systemd-ask-password">
     156        <term><command>systemd-ask-password</command></term>
     157        <listitem>
     158          <para>To be completed</para>
     159          <indexterm zone="ch-system-systemd systemd-ask-password">
     160            <primary sortas="b-systemd-ask-password">systemd-ask-password</primary>
     161          </indexterm>
     162        </listitem>
     163      </varlistentry>
     164
     165      <varlistentry id="systemd-cat">
     166        <term><command>systemd-cat</command></term>
     167        <listitem>
     168          <para>To be completed</para>
     169          <indexterm zone="ch-system-systemd systemd-cat">
     170            <primary sortas="b-systemd-cat">systemd-cat</primary>
     171          </indexterm>
     172        </listitem>
     173      </varlistentry>
     174
     175      <varlistentry id="systemd-cgls">
     176        <term><command>systemd-cgls</command></term>
     177        <listitem>
     178          <para>To be completed</para>
     179          <indexterm zone="ch-system-systemd systemd-cgls">
     180            <primary sortas="b-systemd-cgls">systemd-cgls</primary>
     181          </indexterm>
     182        </listitem>
     183      </varlistentry>
     184
     185      <varlistentry id="systemd-cgtop">
     186        <term><command>systemd-cgtop</command></term>
     187        <listitem>
     188          <para>To be completed</para>
     189          <indexterm zone="ch-system-systemd systemd-cgtop">
     190            <primary sortas="b-systemd-cgtop">systemd-cgtop</primary>
     191          </indexterm>
     192        </listitem>
     193      </varlistentry>
     194
     195      <varlistentry id="systemd-coredumpctl">
     196        <term><command>systemd-coredumpctl</command></term>
     197        <listitem>
     198          <para>To be completed</para>
     199          <indexterm zone="ch-system-systemd systemd-coredumpctl">
     200            <primary sortas="b-systemd-coredumpctl">systemd-coredumpctl</primary>
     201          </indexterm>
     202        </listitem>
     203      </varlistentry>
     204
     205      <varlistentry id="systemd-delta">
     206        <term><command>systemd-delta</command></term>
     207        <listitem>
     208          <para>To be completed</para>
     209          <indexterm zone="ch-system-systemd systemd-delta">
     210            <primary sortas="b-systemd-delta">systemd-delta</primary>
     211          </indexterm>
     212        </listitem>
     213      </varlistentry>
     214
     215      <varlistentry id="systemd-detect-virt">
     216        <term><command>systemd-detect-virt</command></term>
     217        <listitem>
     218          <para>To be completed</para>
     219          <indexterm zone="ch-system-systemd systemd-detect-virt">
     220            <primary sortas="b-systemd-detect-virt">systemd-detect-virt</primary>
     221          </indexterm>
     222        </listitem>
     223      </varlistentry>
     224
     225      <varlistentry id="systemd-inhibit">
     226        <term><command>systemd-inhibit</command></term>
     227        <listitem>
     228          <para>To be completed</para>
     229          <indexterm zone="ch-system-systemd systemd-inhibit">
     230            <primary sortas="b-systemd-inhibit">systemd-inhibit</primary>
     231          </indexterm>
     232        </listitem>
     233      </varlistentry>
     234
     235      <varlistentry id="systemd-machine-id-setup">
     236        <term><command>systemd-machine-id-setup</command></term>
     237        <listitem>
     238          <para>To be completed</para>
     239          <indexterm zone="ch-system-systemd systemd-machine-id-setup">
     240            <primary sortas="b-systemd-machine-id-setup">systemd-machine-id-setup</primary>
     241          </indexterm>
     242        </listitem>
     243      </varlistentry>
     244
     245      <varlistentry id="systemd-notify">
     246        <term><command>systemd-notify</command></term>
     247        <listitem>
     248          <para>To be completed</para>
     249          <indexterm zone="ch-system-systemd systemd-notify">
     250            <primary sortas="b-systemd-notify">systemd-notify</primary>
     251          </indexterm>
     252        </listitem>
     253      </varlistentry>
     254
     255      <varlistentry id="systemd-nspawn">
     256        <term><command>systemd-nspawn</command></term>
     257        <listitem>
     258          <para>To be completed</para>
     259          <indexterm zone="ch-system-systemd systemd-nspawn">
     260            <primary sortas="b-systemd-nspawn">systemd-nspawn</primary>
     261          </indexterm>
     262        </listitem>
     263      </varlistentry>
     264
     265      <varlistentry id="systemd-stdio-bridge">
     266        <term><command>systemd-stdio-bridge</command></term>
     267        <listitem>
     268          <para>To be completed</para>
     269          <indexterm zone="ch-system-systemd systemd-stdio-bridge">
     270            <primary sortas="b-systemd-stdio-bridge">systemd-stdio-bridge</primary>
     271          </indexterm>
     272        </listitem>
     273      </varlistentry>
     274
     275      <varlistentry id="systemd-tmpfiles">
     276        <term><command>systemd-tmpfiles</command></term>
     277        <listitem>
     278          <para>To be completed</para>
     279          <indexterm zone="ch-system-systemd systemd-tmpfiles">
     280            <primary sortas="b-systemd-tmpfiles">systemd-tmpfiles</primary>
     281          </indexterm>
     282        </listitem>
     283      </varlistentry>
     284
     285      <varlistentry id="systemd-tty-ask-password-agent">
     286        <term><command>systemd-tty-ask-password-agent</command></term>
     287        <listitem>
     288          <para>To be completed</para>
     289          <indexterm zone="ch-system-systemd systemd-tty-ask-password-agent">
     290            <primary sortas="b-systemd-tty-ask-password-agent">systemd-tty-ask-password-agent</primary>
     291          </indexterm>
     292        </listitem>
     293      </varlistentry>
     294
     295      <varlistentry id="timedatectl">
     296        <term><command>timedatectl</command></term>
     297        <listitem>
     298          <para>To be completed</para>
     299          <indexterm zone="ch-system-systemd timedatectl">
     300            <primary sortas="b-timedatectl">timedatectl</primary>
    150301          </indexterm>
    151302        </listitem>
     
    155306        <term><command>udevadm</command></term>
    156307        <listitem>
    157           <para>Generic udev administration tool: controls the udevd daemon,
    158           provides info from the Udev database, monitors uevents, waits for
    159           uevents to finish, tests Udev configuration, and triggers uevents
    160           for a given device</para>
    161           <indexterm zone="ch-system-udev udevadm">
     308          <para>To be completed</para>
     309          <indexterm zone="ch-system-systemd udevadm">
    162310            <primary sortas="b-udevadm">udevadm</primary>
    163311          </indexterm>
     
    165313      </varlistentry>
    166314
    167       <varlistentry id="udevd">
    168         <term><command>udevd</command></term>
    169         <listitem>
    170           <para>A daemon that listens for uevents on the netlink socket,
    171           creates devices and runs the configured external programs in
    172           response to these uevents</para>
    173           <indexterm zone="ch-system-udev udevd">
    174             <primary sortas="b-udevd">udevd</primary>
    175           </indexterm>
    176         </listitem>
    177       </varlistentry>
    178 
    179       <varlistentry id="libudev">
    180         <term><filename class="libraryfile">libudev</filename></term>
    181         <listitem>
    182           <para>A library interface to udev device information</para>
    183           <indexterm zone="ch-system-udev libudev">
    184             <primary sortas="c-libudev">libudev</primary>
    185           </indexterm>
    186         </listitem>
    187       </varlistentry>
    188 
    189       <varlistentry id="etc-udev">
    190         <term><filename class="directory">/etc/udev</filename></term>
    191         <listitem>
    192           <para>Contains Udev configuration files,
    193           device permissions, and rules for device naming</para>
    194           <indexterm zone="ch-system-udev etc-udev">
    195             <primary sortas="e-/etc/udev">/etc/udev</primary>
    196           </indexterm>
    197         </listitem>
    198       </varlistentry>
    199 
    200315    </variablelist>
    201316
Note: See TracChangeset for help on using the changeset viewer.