Ignore:
Timestamp:
05/30/2022 03:45:10 AM (2 years ago)
Author:
Thomas Trepl (Moody) <thomas@…>
Branches:
multilib
Children:
bdb4c90
Parents:
e8d4ea4 (diff), 5f3777a (diff)
Note: this is a merge changeset, the changes displayed below correspond to the merge itself.
Use the (diff) links above to see all the changes relative to each parent.
Message:

Automatic merge of trunk into multilib

File:
1 edited

Legend:

Unmodified
Added
Removed
  • chapter08/systemd.xml

    re8d4ea4 rd3e7e98  
    4141    <title>Installation of systemd</title>
    4242
    43     <para>First, apply a patch to fix a security vulnerability and regressions
    44     with hostnames and idle units:</para>
    45 
    46 <screen><userinput remap="pre">patch -Np1 -i ../systemd-&systemd-version;-upstream_fixes-1.patch</userinput></screen>
    47 
    48     <para>Now, apply a patch to fix a problem with the linux kernel's headers in
    49     version 5.17 and later:</para>
    50 
    51 <screen><userinput remap="pre">patch -Np1 -i ../systemd-&systemd-version;-kernel_5.17_fixes-1.patch</userinput></screen>
    52 
    5343    <para>Remove two unneeded groups,
    5444    <systemitem class="groupname">render</systemitem> and
     
    6555
    6656meson --prefix=/usr                 \
    67       --sysconfdir=/etc             \
    68       --localstatedir=/var          \
    6957      --buildtype=release           \
    70       -Dblkid=true                  \
    7158      -Ddefault-dnssec=no           \
    7259      -Dfirstboot=false             \
     
    7461      -Dldconfig=false              \
    7562      -Dsysusers=false              \
    76       -Db_lto=false                 \
    7763      -Drpmmacrosdir=no             \
    7864      -Dhomed=false                 \
     
    8066      -Dman=false                   \
    8167      -Dmode=release                \
     68      -Dpamconfdir=no               \
    8269      -Ddocdir=/usr/share/doc/systemd-&systemd-version; \
    8370      ..</userinput></screen>
     
    174161      </varlistentry>
    175162
     163      <varlistentry>
     164        <term><parameter>-Dpamconfdir=no</parameter></term>
     165        <listitem>
     166          <para>Prevent the installation of a PAM configuration file not
     167          functional on LFS.</para>
     168        </listitem>
     169      </varlistentry>
    176170    </variablelist>
    177171
     
    186180    <para>Install the man pages:</para>
    187181
    188 <screen><userinput remap="install">tar -xf ../../systemd-man-pages-&systemd-man-version;.tar.xz -C /usr/share/man</userinput></screen>
    189 
    190     <para>Remove a useless directory:</para>
    191 
    192 <screen><userinput remap="install">rm -rf /usr/lib/pam.d</userinput></screen>
     182    <!-- Please make sure systemd man pages tarball has a common leading
     183         component in the path.  -->
     184<screen><userinput remap="install">tar -xf ../../systemd-man-pages-&systemd-man-version;.tar.xz --strip-components=1 -C /usr/share/man</userinput></screen>
    193185
    194186    <para>Create the <filename>/etc/machine-id</filename> file needed by
     
    200192
    201193<screen><userinput remap="adjust">systemctl preset-all</userinput></screen>
     194
     195    <para>Disable a service for upgrading binary distros.  It's useless for
     196    a basic Linux system built from source, and it will report an error if
     197    it's enabled but not configured:</para>
     198
     199<screen><userinput remap="adjust">systemctl disable systemd-sysupdate</userinput></screen>
    202200
    203201<!-- dev: 50-pid-max.conf is not removed in BLFS, so I commented the following out.
Note: See TracChangeset for help on using the changeset viewer.