Ignore:
File:
1 edited

Legend:

Unmodified
Added
Removed
  • general/sysutils/systemd.xml

    re3b4ce18 re6940ab  
    55  %general-entities;
    66
    7   <!--  <!ENTITY systemd-download-http "http://anduin.linuxfromscratch.org/LFS/systemd-&systemd-version;-&systemd-stable;.tar.xz"> For whenever we move to a stable snapshot for backports -->
     7  <!--  <!ENTITY systemd-download-http "https://anduin.linuxfromscratch.org/LFS/systemd-&systemd-version;-&systemd-stable;.tar.xz"> For whenever we move to a stable snapshot for backports -->
    88  <!ENTITY systemd-download-http "https://github.com/systemd/systemd/archive/v&systemd-version;/systemd-&systemd-version;.tar.gz">
    99  <!ENTITY systemd-download-ftp  " ">
    10   <!ENTITY systemd-md5sum        "8e8adf909c255914dfc10709bd372e69">
    11   <!ENTITY systemd-size          "10 MB">
    12   <!ENTITY systemd-buildsize     "287 MB (with tests)">
    13   <!ENTITY systemd-time          "2.5 SBU (with tests)">
     10  <!ENTITY systemd-md5sum        "b9456750a212dd54d81caeb3c38134b6">
     11  <!ENTITY systemd-size          "11 MB">
     12  <!ENTITY systemd-buildsize     "307 MB (with tests)">
     13  <!ENTITY systemd-time          "2.8 SBU (with tests)">
    1414
    1515]>
     
    1818  <?dbhtml filename="systemd.html"?>
    1919
    20   <sect1info>
    21     <date>$Date$</date>
    22   </sect1info>
    2320
    2421  <title>Systemd-&systemd-version;</title>
     
    4239    </para>
    4340
    44     &lfs110a_checked;
     41    &lfs112_checked;
    4542
    4643    <bridgehead renderas="sect3">Package Information</bridgehead>
     
    7875    </itemizedlist>
    7976
     77<!--  Keep here in case a patch will be needed.-->
     78
    8079    <bridgehead renderas="sect3">Additional Downloads</bridgehead>
    8180    <itemizedlist spacing="compact">
     
    8382        <para>
    8483         Required patch:
    85          <ulink url="&patch-root;/systemd-&systemd-version;-upstream_fixes-1.patch"/>
     84         <ulink url="&patch-root;/systemd-&systemd-version;-security_fix-1.patch"/>
    8685        </para>
    8786      </listitem>
     
    9291    <bridgehead renderas="sect4">Required</bridgehead>
    9392    <para role="required">
    94       <xref linkend="Jinja2"/> and
    9593      <xref linkend="linux-pam"/>
    9694    </para>
    9795
    98     <bridgehead renderas="sect4">Recommended Runtime Dependencies</bridgehead>
     96    <bridgehead renderas="sect4">Recommended Runtime Dependency</bridgehead>
    9997    <para role="recommended">
    10098      <xref role="runtime" linkend="polkit"/>
     
    124122      <ulink url="https://sourceforge.net/projects/gnu-efi/">gnu-efi</ulink>,
    125123      <ulink url="https://www.kernel.org/pub/linux/utils/kernel/kexec/">kexec-tools</ulink>,
     124      <ulink url="https://github.com/libbpf/libbpf">libbpf</ulink>,
    126125      <ulink url="https://sourceware.org/elfutils/">libdw</ulink>,
    127126      <ulink url="https://developers.yubico.com/libfido2/">libfido2</ulink>,
    128127      <ulink url="https://www.gnu.org/software/libmicrohttpd/">libmicrohttpd</ulink>,
    129       <ulink url="http://lz4.github.io/lz4/">lz4</ulink>,
     128      <ulink url="https://lz4.github.io/lz4/">lz4</ulink>,
    130129      <!--<ulink url="http://fukuchi.org/works/qrencode/">qrencode</ulink>,-->
    131130      <ulink url="https://sourceforge.net/projects/linuxquota/">quota-tools</ulink>,
     
    151150
    152151    <para>
    153       Apply a patch to fix a security vulnerability:
    154     </para>
    155 
    156 <screen><userinput remap="pre">patch -Np1 -i ../systemd-&systemd-version;-upstream_fixes-1.patch</userinput></screen>
     152      First, fix a security issue in systemd-coredump:
     153    </para>
     154
     155<screen><userinput>patch -Np1 -i ../systemd-&systemd-version;-security_fix-1.patch</userinput></screen>
    157156
    158157    <para>
     
    167166
    168167    <para>
    169       Fix a problem with meson version 0.60 and higher:
    170     </para>
    171 
    172 <screen><userinput remap="pre">sed -i 's/+ want_libfuzzer.*$/and want_libfuzzer/' meson.build</userinput></screen>
    173 
    174     <para>
    175       Fix a problem when building with kernel headers from linux-5.14 and later:
    176     </para>
    177 
    178 <screen><userinput remap="pre">sed -i '/ARPHRD_CAN/a#define ARPHRD_MCTP        290' src/basic/linux/if_arp.h</userinput></screen>
    179 
    180     <para>
    181168      Rebuild <application>systemd</application> by running the
    182169      following commands:
     
    188175meson --prefix=/usr                 \
    189176      --buildtype=release           \
    190       -Dblkid=true                  \
    191177      -Ddefault-dnssec=no           \
    192178      -Dfirstboot=false             \
     
    196182      -Dsysusers=false              \
    197183      -Drpmmacrosdir=no             \
    198       -Db_lto=false                 \
    199184      -Dhomed=false                 \
    200185      -Duserdb=false                \
    201186      -Dmode=release                \
     187      -Dpam=true                    \
    202188      -Dpamconfdir=/etc/pam.d       \
    203189      -Ddocdir=/usr/share/doc/systemd-&systemd-version; \
     
    209195    <note>
    210196      <para>
    211         For the best test results, make sure you run the testsuite from
     197        For the best test results, make sure you run the test suite from
    212198        a system that is booted by the same
    213199        <application>systemd</application> version you are rebuilding.
     
    221207    </para>
    222208
    223 <!--
    224     <warning>
    225       <para>
    226         Installing the package will overwrite all files installed by
    227         <application>systemd</application> in LFS. It is critical that
    228         nothing uses either <application>systemd</application> or
    229         <application>Udev</application> libraries during the installation.
    230         The best way to ensure that these libraries are not being used is to
    231         run the installation in rescue mode. To switch to rescue mode,
    232         run the following command as the
    233         <systemitem class="username">root</systemitem> user (from a TTY):
    234       </para>
    235 
    236 <screen role="root"><userinput>systemctl isolate rescue.target</userinput></screen>
    237     </warning>
    238     Nobody has reported problems with this in years. Let's comment it. -->
    239 
    240209   <para>
    241210     Now, as the <systemitem class="username">root</systemitem> user:
     
    243212
    244213<screen role="root"><userinput>ninja install</userinput></screen>
    245   <!-- No longer needed as of systemd-244.
    246     <para>
    247       Remove a configuration file that causes some problems with PID files:
    248     </para>
    249 
    250 <screen role="root"><userinput>rm -fv /etc/sysctl.d/50-pid-max.conf</userinput></screen>
    251   -->
     214
    252215  </sect2>
    253216
    254217  <sect2 role="commands">
    255218    <title>Command Explanations</title>
    256 
    257 <!-- Not needed with the patch
    258     <para>
    259       <parameter>-Dc_args=-Wno-format-overflow</parameter>: Prevents an error
    260       when building with <application>GCC 10</application>. The default is
    261       <option>-Werror=format-overflow</option>,
    262       which generates false positives. This switch may be used with previous
    263       versions of GCC too.
    264     </para>
    265 -->
    266219
    267220    <xi:include xmlns:xi="http://www.w3.org/2001/XInclude"
     
    284237      any use under a traditional BLFS configuration, especially using accounts
    285238      created with useradd. To enable systemd-homed, first ensure that you have
    286       <xref linkend="cryptsetup"/> and <xref linkend="libpwquality"/>, and then
    287       change "false" to "true" in the above meson command.
     239      <xref linkend="cryptsetup"/> and <xref linkend="libpwquality"/> installed,
     240      and then change "false" to "true" in the above meson command.
    288241    </para>
    289242
     
    333286    </para>
    334287
    335 <screen role="root"><userinput>cat &gt;&gt; /etc/pam.d/system-session &lt;&lt; "EOF"
     288<screen role="root"><userinput>grep 'pam_systemd' /etc/pam.d/system-session ||
     289cat &gt;&gt; /etc/pam.d/system-session &lt;&lt; "EOF"
    336290<literal># Begin Systemd addition
    337291
     
    360314# End /etc/pam.d/systemd-user</literal>
    361315EOF</userinput></screen>
    362 
    363 <!--
    364     <para>
    365       At this point, you should reload the systemd daemon, and reenter
    366       multi-user mode with the following commands (as the
    367       <systemitem class="username">root</systemitem> user).  If a desktop
    368       manager is installed and you wish to reenter the graphical mode,
    369       replace <userinput>multi-user.target</userinput> with
    370       <userinput>graphical.target</userinput>:
    371     </para>
    372 
    373 <screen role="root"><userinput>systemctl daemon-reexec
    374 systemctl start multi-user.target</userinput></screen>-->
    375316
    376317    <warning>
     
    394335
    395336      <para>
    396         Listed below are the newly installed libraries and directories
     337        Listed below are the newly installed programs
    397338        along with short descriptions.
    398339      </para>
     
    400341    <segmentedlist>
    401342      <segtitle>Installed Programs</segtitle>
    402       <segtitle>Installed Libraries</segtitle>
    403       <segtitle>Installed Directories</segtitle>
    404343
    405344      <seglistitem>
    406345        <seg>
    407346          <!-- maybe userdbd/userdbctl can go in LFS, try at next time -->
    408           homectl (if <xref linkend="cryptsetup"/> is installed)
     347          homectl (if <xref linkend="cryptsetup"/> is installed),
     348          systemd-cryptenroll (if <xref linkend="cryptsetup"/> is installed),
    409349          and userdbctl (optionally)
    410         </seg>
    411         <seg>
    412           pam_systemd.so
    413           (in <filename class="directory">/lib/security</filename>)
    414         </seg>
    415         <seg>
    416           None
    417350        </seg>
    418351      </seglistitem>
     
    439372      </varlistentry>
    440373
     374      <varlistentry id="systemd-cryptenroll">
     375        <term><command>systemd-cryptenroll</command></term>
     376        <listitem>
     377          <para>
     378            Is used to enroll or remove a system from full disk encryption,
     379            as well as set and query private keys and recovery keys
     380          </para>
     381          <indexterm zone="systemd systemd-cryptenroll">
     382            <primary sortas="b-systemd-cryptenroll">systemd-cryptenroll</primary>
     383          </indexterm>
     384        </listitem>
     385      </varlistentry>
     386
    441387      <varlistentry id="userdbctl">
    442388        <term><command>userdbctl</command></term>
Note: See TracChangeset for help on using the changeset viewer.