source: general/sysutils/systemd.xml@ c7ab75e8

10.0 10.1 11.0 11.1 11.2 11.3 12.0 12.1 8.1 8.2 8.3 8.4 9.0 9.1 basic bdubbs/svn elogind kea ken/TL2024 ken/inkscape-core-mods ken/tuningfonts lazarus lxqt perl-modules plabs/newcss plabs/python-mods python3.11 qt5new rahul/power-profiles-daemon renodr/vulkan-addition trunk upgradedb xry111/intltool xry111/llvm18 xry111/soup3 xry111/test-20220226 xry111/xf86-video-removal
Last change on this file since c7ab75e8 was c7ab75e8, checked in by Douglas R. Reno <renodr@…>, 7 years ago

Update systemd configure options

git-svn-id: svn://svn.linuxfromscratch.org/BLFS/trunk/BOOK@18937 af4574ff-66df-0310-9fd7-8a98e5e911e0

  • Property mode set to 100644
File size: 10.2 KB
Line 
1<?xml version="1.0" encoding="ISO-8859-1"?>
2<!DOCTYPE sect1 PUBLIC "-//OASIS//DTD DocBook XML V4.5//EN"
3 "http://www.oasis-open.org/docbook/xml/4.5/docbookx.dtd" [
4 <!ENTITY % general-entities SYSTEM "../../general.ent">
5 %general-entities;
6
7 <!ENTITY systemd-download-http "http://anduin.linuxfromscratch.org/sources/other/systemd/systemd-&systemd-version;.tar.xz">
8 <!ENTITY systemd-download-ftp " ">
9 <!ENTITY systemd-md5sum "8d95734fdfcd13855746f143de1e3c86">
10 <!ENTITY systemd-size "3.9 MB">
11 <!ENTITY systemd-buildsize "320 MB (an additional 75 MB for tests)">
12 <!ENTITY systemd-time "7.7 SBU (an additional 0.5 SBU for tests)">
13
14]>
15
16<sect1 id="systemd" xreflabel="Systemd-&systemd-version;" revision="systemd">
17 <?dbhtml filename="systemd.html"?>
18
19 <sect1info>
20 <othername>$LastChangedBy$</othername>
21 <date>$Date$</date>
22 </sect1info>
23
24 <title>Systemd-&systemd-version;</title>
25
26 <indexterm zone="systemd">
27 <primary sortas="a-systemd">systemd</primary>
28 </indexterm>
29
30 <sect2 role="package">
31 <title>Introduction to systemd</title>
32
33 <para>
34 While <application>systemd</application> was installed when
35 building LFS, there are many features provided by the package that
36 were not included in the initial installation because
37 <application>Linux-PAM</application> was not yet installed.
38 The <application>systemd</application> package needs to be
39 rebuilt to provide a working <command>systemd-logind</command> service,
40 which provides many additional features for dependent packages.
41 </para>
42
43 &lfs80_checked;
44
45 <bridgehead renderas="sect3">Package Information</bridgehead>
46 <itemizedlist spacing="compact">
47 <listitem>
48 <para>Download (HTTP): <ulink url="&systemd-download-http;"/></para>
49 </listitem>
50 <listitem>
51 <para>Download (FTP): <ulink url="&systemd-download-ftp;"/></para>
52 </listitem>
53 <listitem>
54 <para>Download MD5 sum: &systemd-md5sum;</para>
55 </listitem>
56 <listitem>
57 <para>Download size: &systemd-size;</para>
58 </listitem>
59 <listitem>
60 <para>Estimated disk space required: &systemd-buildsize;</para>
61 </listitem>
62 <listitem>
63 <para>Estimated build time: &systemd-time;</para>
64 </listitem>
65 </itemizedlist>
66
67 <bridgehead renderas="sect3">systemd Dependencies</bridgehead>
68
69 <bridgehead renderas="sect4">Required</bridgehead>
70 <para role="required">
71 <xref linkend="linux-pam"/>
72 </para>
73
74 <bridgehead renderas="sect4">Recommended Runtime Dependencies</bridgehead>
75 <para role="recommended">
76 <xref linkend="polkit"/> and <xref linkend="python3"/> <!-- hwdb and tests -->
77 </para>
78
79 <bridgehead renderas="sect4">Optional</bridgehead>
80 <para role="optional">
81 <xref linkend="cacerts"/>,
82 <xref linkend="curl"/>,
83 <xref linkend="elfutils"/>,
84 <xref linkend="gnutls"/>,
85 <xref linkend="iptables"/>,
86 <xref linkend="libgcrypt"/>,
87 <xref linkend="libidn"/>,
88 <xref linkend="libxkbcommon"/>,
89 <xref linkend="qemu"/>,
90 <xref linkend="valgrind"/>,
91 <xref linkend="zsh"/> (for the zsh completions),
92 <ulink url="https://www.kernel.org/pub/linux/utils/cryptsetup/">cryptsetup</ulink>,
93 <ulink url="http://sourceforge.net/projects/gnu-efi/">gnu-efi</ulink>,
94 <ulink url="https://www.kernel.org/pub/linux/utils/kernel/kexec/">kexec-tools</ulink>,
95 <ulink url="https://www.gnu.org/software/libmicrohttpd/">libmicrohttpd</ulink>,
96 <ulink url="https://github.com/seccomp/libseccomp">libseccomp</ulink>,
97 <ulink url="http://lz4.github.io/lz4/">lz4</ulink>,
98 <ulink url="http://fukuchi.org/works/qrencode/">qrencode</ulink>,
99 <ulink url="http://sourceforge.net/projects/linuxquota/">quota-tools</ulink> and
100 <ulink url="https://pypi.python.org/pypi/Sphinx">Sphinx</ulink>
101 </para>
102
103 <bridgehead renderas="sect4">Optional (to rebuild the manual pages)</bridgehead>
104 <para role="optional">
105 <xref linkend="DocBook"/>,
106 <xref linkend="docbook-xsl"/> and
107 <xref linkend="libxslt"/>
108 </para>
109
110 <para condition="html" role="usernotes">User Notes:
111 <ulink url="&blfs-wiki;/systemd"/>
112 </para>
113 </sect2>
114
115 <sect2 role="installation">
116 <title>Installation of systemd</title>
117
118<!-- Not needed as of v231 -renodr
119 <para>First, fix a potential security issue with framebuffer
120 devices:</para>
121
122<screen><userinput>sed -e 's@DRI and frame buffer@DRI@' \
123 -e '/SUBSYSTEM==\"graphics\", KERNEL==\"fb\*\"/d' \
124 -i src/login/70-uaccess.rules</userinput></screen>
125-->
126
127 <para>
128 Disable two tests that always fail:
129 </para>
130
131<screen><userinput>sed -e 's:test/udev-test.pl ::g' \
132 -e 's:test-copy$(EXEEXT) ::g' \
133 -i Makefile.in</userinput></screen>
134
135 <para>
136 Rebuild <application>systemd</application> by running the
137 following commands:
138 </para>
139
140<!-- The logic behind - -disable-manpages is that you will already have the
141 manpages from this version of systemd installed. This is a rebuild, not
142 a fresh installation of a new version, and previous versions manpages
143 generally apply. This may change in a future update. -->
144
145<screen><userinput>./configure --prefix=/usr \
146 --sysconfdir=/etc \
147 --localstatedir=/var \
148 --with-rootprefix= \
149 --with-rootlibdir=/lib \
150 --enable-split-usr \
151 --disable-firstboot \
152 --disable-ldconfig \
153 --disable-sysusers \
154 --disable-manpages \
155 --with-default-dnssec=no \
156 --docdir=/usr/share/doc/systemd-&systemd-version; &amp;&amp;
157make</userinput></screen>
158
159 <note>
160 <para>
161 For the best results, make sure you run the testsuite from
162 a system that is booted by the same
163 <application>systemd</application> version you are rebuilding.
164 </para>
165 </note>
166
167 <para>
168 To test the results, issue: <command>make -k check</command>. Three tests
169 are known to fail.
170 </para>
171
172 <warning>
173 <para>
174 Installing the package will overwrite all files installed by
175 <application>systemd</application> in LFS. It is critical that
176 nothing uses either <application>systemd</application> or
177 <application>Udev</application> libraries during the installation.
178 The best way to ensure that these libraries are not being used is to
179 run the installation in rescue mode. To switch to rescue mode,
180 run the following command as the
181 <systemitem class="username">root</systemitem> user (from a TTY):
182 </para>
183
184<screen role="root"><userinput>systemctl start rescue.target</userinput></screen>
185 </warning>
186
187 <para>
188 Now, as the <systemitem class="username">root</systemitem> user:
189 </para>
190
191<screen role="root"><userinput>make install</userinput></screen>
192
193 <para>
194 If <application>RPM</application> is not installed, remove an
195 unnecessary directory by running the following command as the
196 <systemitem class="username">root</systemitem> user:
197 </para>
198
199<screen role="root"><userinput>rm -rfv /usr/lib/rpm</userinput></screen>
200
201 </sect2>
202
203 <sect2 role="configuration">
204 <title>Configuring systemd</title>
205
206 <para>
207 The <filename>/etc/pam.d/system-session</filename> file needs to
208 be modified and a new file needs to be created in order for
209 <command>systemd-logind</command> to work correctly. Run the following
210 commands as the <systemitem class="username">root</systemitem> user:
211 </para>
212
213<screen role="root"><userinput>cat &gt;&gt; /etc/pam.d/system-session &lt;&lt; "EOF"
214<literal># Begin Systemd addition
215
216session required pam_loginuid.so
217session optional pam_systemd.so
218
219# End Systemd addition</literal>
220EOF
221
222cat &gt; /etc/pam.d/systemd-user &lt;&lt; "EOF"
223<literal># Begin /etc/pam.d/systemd-user
224
225account required pam_access.so
226account include system-account
227
228session required pam_env.so
229session required pam_limits.so
230session include system-session
231
232auth required pam_deny.so
233password required pam_deny.so
234
235# End /etc/pam.d/systemd-user</literal>
236EOF</userinput></screen>
237
238 <para>
239 At this point, you should reload the systemd daemon, and reenter
240 multi-user mode with the following commands (as the
241 <systemitem class="username">root</systemitem> user):
242 </para>
243
244<screen role="root"><userinput>systemctl daemon-reload
245systemctl start multi-user.target</userinput></screen>
246
247 <warning><para>If upgrading from a previous version of systemd and an
248 initrd is used for system boot, you should generate a new initrd before
249 rebooting the system.</para></warning>
250
251 </sect2>
252
253 <sect2 role="content">
254 <title>Contents</title>
255
256 <para>
257 A list of the installed files, along with their short
258 descriptions can be found at
259 <ulink url="&lfs-root;/chapter06/systemd.html#contents-systemd"/>.
260 </para>
261
262 <para>
263 Listed below are the newly installed libraries and directories
264 along with short descriptions.
265 </para>
266
267 <segmentedlist>
268 <segtitle>Installed Programs</segtitle>
269 <segtitle>Installed Libraries</segtitle>
270 <segtitle>Installed Directories</segtitle>
271
272 <seglistitem>
273 <seg>
274 None
275 </seg>
276 <seg>
277 pam_systemd.so
278 (in <filename class="directory">/lib/security</filename>)
279 </seg>
280 <seg>
281 None
282 </seg>
283 </seglistitem>
284 </segmentedlist>
285
286 <variablelist>
287 <bridgehead renderas="sect3">Short Descriptions</bridgehead>
288 <?dbfo list-presentation="list"?>
289 <?dbhtml list-presentation="table"?>
290
291 <varlistentry id="pam_systemd">
292 <term><filename class="libraryfile">pam_systemd.so</filename></term>
293 <listitem>
294 <para>
295 is a PAM module used to register user sessions with the
296 <application>systemd</application> login manager,
297 <command>systemd-logind</command>.
298 </para>
299 <indexterm zone="systemd pam_systemd">
300 <primary sortas="c-pam_systemd">pam_systemd.so</primary>
301 </indexterm>
302 </listitem>
303 </varlistentry>
304
305 </variablelist>
306
307 </sect2>
308
309</sect1>
Note: See TracBrowser for help on using the repository browser.