[f852e706] | 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 |
|
---|
[4478c65a] | 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 -->
|
---|
| 8 | <!ENTITY systemd-download-http "https://github.com/systemd/systemd/archive/v&systemd-version;/systemd-&systemd-version;.tar.gz">
|
---|
[f852e706] | 9 | <!ENTITY systemd-download-ftp " ">
|
---|
[7cc0c9d] | 10 | <!ENTITY systemd-md5sum "8929beb037c587ada4ed201f19756fe2">
|
---|
| 11 | <!ENTITY systemd-size "11 MB">
|
---|
| 12 | <!ENTITY systemd-buildsize "307 MB (with tests)">
|
---|
[4f60bf0] | 13 | <!ENTITY systemd-time "2.5 SBU (with tests)">
|
---|
[f852e706] | 14 |
|
---|
| 15 | ]>
|
---|
| 16 |
|
---|
[4478c65a] | 17 | <sect1 id="systemd" xreflabel="Systemd-&systemd-version;" revision="systemd">
|
---|
[f852e706] | 18 | <?dbhtml filename="systemd.html"?>
|
---|
| 19 |
|
---|
| 20 | <sect1info>
|
---|
| 21 | <date>$Date$</date>
|
---|
| 22 | </sect1info>
|
---|
| 23 |
|
---|
[4478c65a] | 24 | <title>Systemd-&systemd-version;</title>
|
---|
| 25 | <!-- Whenever we switch back to stable backports, make sure to add the systemd-stable reference back. -->
|
---|
[f852e706] | 26 |
|
---|
| 27 | <indexterm zone="systemd">
|
---|
| 28 | <primary sortas="a-systemd">systemd</primary>
|
---|
| 29 | </indexterm>
|
---|
| 30 |
|
---|
| 31 | <sect2 role="package">
|
---|
| 32 | <title>Introduction to systemd</title>
|
---|
| 33 |
|
---|
| 34 | <para>
|
---|
| 35 | While <application>systemd</application> was installed when
|
---|
| 36 | building LFS, there are many features provided by the package that
|
---|
[77a6d25] | 37 | were not included in the initial installation because
|
---|
[f852e706] | 38 | <application>Linux-PAM</application> was not yet installed.
|
---|
| 39 | The <application>systemd</application> package needs to be
|
---|
| 40 | rebuilt to provide a working <command>systemd-logind</command> service,
|
---|
[77a6d25] | 41 | which provides many additional features for dependent packages.
|
---|
[f852e706] | 42 | </para>
|
---|
[8558044] | 43 |
|
---|
[f1a479c7] | 44 | &lfs111_checked;
|
---|
[f852e706] | 45 |
|
---|
| 46 | <bridgehead renderas="sect3">Package Information</bridgehead>
|
---|
| 47 | <itemizedlist spacing="compact">
|
---|
| 48 | <listitem>
|
---|
[b1532549] | 49 | <para>
|
---|
| 50 | Download (HTTP): <ulink url="&systemd-download-http;"/>
|
---|
| 51 | </para>
|
---|
[f852e706] | 52 | </listitem>
|
---|
| 53 | <listitem>
|
---|
[b1532549] | 54 | <para>
|
---|
| 55 | Download (FTP): <ulink url="&systemd-download-ftp;"/>
|
---|
| 56 | </para>
|
---|
[f852e706] | 57 | </listitem>
|
---|
| 58 | <listitem>
|
---|
[b1532549] | 59 | <para>
|
---|
| 60 | Download MD5 sum: &systemd-md5sum;
|
---|
| 61 | </para>
|
---|
[f852e706] | 62 | </listitem>
|
---|
| 63 | <listitem>
|
---|
[b1532549] | 64 | <para>
|
---|
| 65 | Download size: &systemd-size;
|
---|
| 66 | </para>
|
---|
[f852e706] | 67 | </listitem>
|
---|
| 68 | <listitem>
|
---|
[b1532549] | 69 | <para>
|
---|
| 70 | Estimated disk space required: &systemd-buildsize;
|
---|
| 71 | </para>
|
---|
[f852e706] | 72 | </listitem>
|
---|
| 73 | <listitem>
|
---|
[b1532549] | 74 | <para>
|
---|
| 75 | Estimated build time: &systemd-time;
|
---|
| 76 | </para>
|
---|
[f852e706] | 77 | </listitem>
|
---|
| 78 | </itemizedlist>
|
---|
[c130abf] | 79 |
|
---|
[64351cb] | 80 |
|
---|
[b5d17476] | 81 | <bridgehead renderas="sect3">Additional Downloads</bridgehead>
|
---|
| 82 | <itemizedlist spacing="compact">
|
---|
| 83 | <listitem>
|
---|
| 84 | <para>
|
---|
| 85 | Required patch:
|
---|
[229d0692] | 86 | <ulink url="&patch-root;/systemd-&systemd-version;-upstream_fixes-1.patch"/>
|
---|
[b5d17476] | 87 | </para>
|
---|
| 88 | </listitem>
|
---|
[6406b296] | 89 | <listitem>
|
---|
| 90 | <para>
|
---|
| 91 | Required patch:
|
---|
| 92 | <ulink url="&patch-root;/systemd-&systemd-version;-kernel_5.17_fixes-1.patch"/>
|
---|
| 93 | </para>
|
---|
| 94 | </listitem>
|
---|
[b5d17476] | 95 | </itemizedlist>
|
---|
[64351cb] | 96 |
|
---|
[c130abf] | 97 |
|
---|
[f852e706] | 98 | <bridgehead renderas="sect3">systemd Dependencies</bridgehead>
|
---|
| 99 |
|
---|
| 100 | <bridgehead renderas="sect4">Required</bridgehead>
|
---|
| 101 | <para role="required">
|
---|
| 102 | <xref linkend="linux-pam"/>
|
---|
| 103 | </para>
|
---|
| 104 |
|
---|
[fde1abe] | 105 | <bridgehead renderas="sect4">Recommended Runtime Dependency</bridgehead>
|
---|
[f852e706] | 106 | <para role="recommended">
|
---|
[8558044] | 107 | <xref role="runtime" linkend="polkit"/>
|
---|
[f852e706] | 108 | </para>
|
---|
| 109 |
|
---|
| 110 | <bridgehead renderas="sect4">Optional</bridgehead>
|
---|
| 111 | <para role="optional">
|
---|
[81e5e5a] | 112 | <xref linkend="btrfs-progs"/>, <!-- homed may support it, see the C.E.-->
|
---|
[f852e706] | 113 | <xref linkend="curl"/>,
|
---|
[b1be08a] | 114 | <xref linkend="cryptsetup"/>,
|
---|
[5fff3896] | 115 | <xref linkend="git"/>,
|
---|
[f852e706] | 116 | <xref linkend="gnutls"/>,
|
---|
| 117 | <xref linkend="iptables"/>,
|
---|
| 118 | <xref linkend="libgcrypt"/>,
|
---|
[531f138] | 119 | <xref linkend="libidn2"/>,
|
---|
[c130abf] | 120 | <xref linkend="libpwquality"/>,
|
---|
[11f3b7e] | 121 | <xref linkend="libseccomp"/>,
|
---|
[f852e706] | 122 | <xref linkend="libxkbcommon"/>,
|
---|
[b1be08a] | 123 | <xref linkend="make-ca"/>,
|
---|
[58ab63b9] | 124 | <xref linkend="p11-kit"/>,
|
---|
[ebb31dbd] | 125 | <xref linkend="pcre2"/>,
|
---|
[f852e706] | 126 | <xref linkend="qemu"/>,
|
---|
[206e0be] | 127 | <xref linkend="qrencode"/>,
|
---|
[115de74] | 128 | <xref linkend="rsync"/>,
|
---|
[f852e706] | 129 | <xref linkend="valgrind"/>,
|
---|
[7c99c52] | 130 | <xref linkend="zsh"/> (for the zsh completions),
|
---|
[c6b192c] | 131 | <ulink url="https://sourceforge.net/projects/gnu-efi/">gnu-efi</ulink>,
|
---|
[f852e706] | 132 | <ulink url="https://www.kernel.org/pub/linux/utils/kernel/kexec/">kexec-tools</ulink>,
|
---|
[7cc0c9d] | 133 | <ulink url="https://github.com/libbpf/libbpf">libbpf</ulink>,
|
---|
[229d0692] | 134 | <ulink url="https://sourceware.org/elfutils/">libdw</ulink>,
|
---|
[ae0944a3] | 135 | <ulink url="https://developers.yubico.com/libfido2/">libfido2</ulink>,
|
---|
[f852e706] | 136 | <ulink url="https://www.gnu.org/software/libmicrohttpd/">libmicrohttpd</ulink>,
|
---|
[331a2b7] | 137 | <ulink url="http://lz4.github.io/lz4/">lz4</ulink>,
|
---|
[206e0be] | 138 | <!--<ulink url="http://fukuchi.org/works/qrencode/">qrencode</ulink>,-->
|
---|
[229d0692] | 139 | <ulink url="https://sourceforge.net/projects/linuxquota/">quota-tools</ulink>,
|
---|
| 140 | <ulink url="https://pypi.python.org/pypi/Sphinx">Sphinx</ulink>, and
|
---|
| 141 | <ulink url="https://tpm2-tss.readthedocs.io/en/latest/">tpm2-tss</ulink>
|
---|
[f852e706] | 142 | </para>
|
---|
| 143 |
|
---|
| 144 | <bridgehead renderas="sect4">Optional (to rebuild the manual pages)</bridgehead>
|
---|
| 145 | <para role="optional">
|
---|
| 146 | <xref linkend="DocBook"/>,
|
---|
[6f8d4ed] | 147 | <xref linkend="docbook-xsl"/>,
|
---|
| 148 | <xref linkend="libxslt"/>, and
|
---|
| 149 | <xref linkend="lxml"/> (to build the index of systemd manual pages)
|
---|
[f852e706] | 150 | </para>
|
---|
| 151 |
|
---|
| 152 | <para condition="html" role="usernotes">User Notes:
|
---|
| 153 | <ulink url="&blfs-wiki;/systemd"/>
|
---|
| 154 | </para>
|
---|
| 155 | </sect2>
|
---|
| 156 |
|
---|
| 157 | <sect2 role="installation">
|
---|
| 158 | <title>Installation of systemd</title>
|
---|
[ccc69593] | 159 |
|
---|
[b1532549] | 160 | <para>
|
---|
[6406b296] | 161 | First, apply a patch to fix a security vulnerability and fix issues with the
|
---|
[64351cb] | 162 | default hostname on some systems:
|
---|
[b1532549] | 163 | </para>
|
---|
[93caa46] | 164 |
|
---|
[229d0692] | 165 | <screen><userinput remap="pre">patch -Np1 -i ../systemd-&systemd-version;-upstream_fixes-1.patch</userinput></screen>
|
---|
[b29b596] | 166 |
|
---|
[6406b296] | 167 | <para>
|
---|
| 168 | Now, apply a patch to fix a problem with the linux kernel headers in
|
---|
| 169 | versions 5.17 and above:
|
---|
| 170 | </para>
|
---|
| 171 |
|
---|
| 172 | <screen><userinput remap="pre">patch -Np1 -i ../systemd-&systemd-version;-kernel_5.17_fixes-1.patch</userinput></screen>
|
---|
| 173 |
|
---|
[b1532549] | 174 | <para>
|
---|
[4f60bf0] | 175 | Remove two unneeded groups,
|
---|
| 176 | <systemitem class="groupname">render</systemitem> and
|
---|
| 177 | <systemitem class="groupname">sgx</systemitem>, from the default udev
|
---|
[b1532549] | 178 | rules:
|
---|
| 179 | </para>
|
---|
[b4e1b81] | 180 |
|
---|
[4f60bf0] | 181 | <screen><userinput remap="pre">sed -i -e 's/GROUP="render"/GROUP="video"/' \
|
---|
| 182 | -e 's/GROUP="sgx", //' rules.d/50-udev-default.rules.in</userinput></screen>
|
---|
[b4e1b81] | 183 |
|
---|
[f852e706] | 184 | <para>
|
---|
| 185 | Rebuild <application>systemd</application> by running the
|
---|
| 186 | following commands:
|
---|
| 187 | </para>
|
---|
| 188 |
|
---|
[e1a8598d] | 189 | <screen><userinput>mkdir build &&
|
---|
| 190 | cd build &&
|
---|
| 191 |
|
---|
[110854d] | 192 | meson --prefix=/usr \
|
---|
[3918112a] | 193 | --buildtype=release \
|
---|
[110854d] | 194 | -Dblkid=true \
|
---|
| 195 | -Ddefault-dnssec=no \
|
---|
| 196 | -Dfirstboot=false \
|
---|
| 197 | -Dinstall-tests=false \
|
---|
| 198 | -Dldconfig=false \
|
---|
| 199 | -Dman=auto \
|
---|
| 200 | -Dsysusers=false \
|
---|
| 201 | -Drpmmacrosdir=no \
|
---|
| 202 | -Db_lto=false \
|
---|
| 203 | -Dhomed=false \
|
---|
| 204 | -Duserdb=false \
|
---|
[ae0944a3] | 205 | -Dmode=release \
|
---|
| 206 | -Dpamconfdir=/etc/pam.d \
|
---|
[ec0f2a5] | 207 | -Ddocdir=/usr/share/doc/systemd-&systemd-version; \
|
---|
[110854d] | 208 | .. &&
|
---|
[e1a8598d] | 209 |
|
---|
[71becb2] | 210 | ninja</userinput></screen>
|
---|
[bdfc854] | 211 | <!-- Regarding homed and userdb, see the note below in Command Explanations-->
|
---|
[f852e706] | 212 |
|
---|
| 213 | <note>
|
---|
| 214 | <para>
|
---|
[e1a8598d] | 215 | For the best test results, make sure you run the testsuite from
|
---|
[f852e706] | 216 | a system that is booted by the same
|
---|
| 217 | <application>systemd</application> version you are rebuilding.
|
---|
| 218 | </para>
|
---|
| 219 | </note>
|
---|
| 220 |
|
---|
| 221 | <para>
|
---|
[df6f75d8] | 222 | To test the results, issue:
|
---|
| 223 | <command>PATH+=:/usr/sbin ninja test</command>.
|
---|
| 224 | <!-- One test named test-repart needs sfdisk, which is in /usr/sbin. -->
|
---|
[f852e706] | 225 | </para>
|
---|
| 226 |
|
---|
[a761478] | 227 | <!--
|
---|
[f852e706] | 228 | <warning>
|
---|
| 229 | <para>
|
---|
| 230 | Installing the package will overwrite all files installed by
|
---|
| 231 | <application>systemd</application> in LFS. It is critical that
|
---|
| 232 | nothing uses either <application>systemd</application> or
|
---|
| 233 | <application>Udev</application> libraries during the installation.
|
---|
| 234 | The best way to ensure that these libraries are not being used is to
|
---|
| 235 | run the installation in rescue mode. To switch to rescue mode,
|
---|
| 236 | run the following command as the
|
---|
| 237 | <systemitem class="username">root</systemitem> user (from a TTY):
|
---|
| 238 | </para>
|
---|
| 239 |
|
---|
[004a11fc] | 240 | <screen role="root"><userinput>systemctl isolate rescue.target</userinput></screen>
|
---|
[f852e706] | 241 | </warning>
|
---|
[a761478] | 242 | Nobody has reported problems with this in years. Let's comment it. -->
|
---|
[f852e706] | 243 |
|
---|
| 244 | <para>
|
---|
| 245 | Now, as the <systemitem class="username">root</systemitem> user:
|
---|
| 246 | </para>
|
---|
| 247 |
|
---|
[71becb2] | 248 | <screen role="root"><userinput>ninja install</userinput></screen>
|
---|
[7cc0c9d] | 249 |
|
---|
[64351cb] | 250 | <!-- Included in the patch
|
---|
[7cc0c9d] | 251 | <para>
|
---|
| 252 | Fix a problem in a systemd unit that can cause extra delays when
|
---|
| 253 | changing TTYs:
|
---|
| 254 | </para>
|
---|
| 255 |
|
---|
| 256 | <screen role="root"><userinput>sed -i 's/idle/simple/' /usr/lib/systemd/system/getty@.service</userinput></screen>
|
---|
[64351cb] | 257 | -->
|
---|
[3c7458ca] | 258 | <!-- No longer needed as of systemd-244.
|
---|
[b1532549] | 259 | <para>
|
---|
| 260 | Remove a configuration file that causes some problems with PID files:
|
---|
| 261 | </para>
|
---|
[0dccf0ff] | 262 |
|
---|
| 263 | <screen role="root"><userinput>rm -fv /etc/sysctl.d/50-pid-max.conf</userinput></screen>
|
---|
[3c7458ca] | 264 | -->
|
---|
[f852e706] | 265 | </sect2>
|
---|
| 266 |
|
---|
[bdfc854] | 267 | <sect2 role="commands">
|
---|
| 268 | <title>Command Explanations</title>
|
---|
| 269 |
|
---|
[6742509c] | 270 | <!-- Not needed with the patch
|
---|
[110854d] | 271 | <para>
|
---|
| 272 | <parameter>-Dc_args=-Wno-format-overflow</parameter>: Prevents an error
|
---|
| 273 | when building with <application>GCC 10</application>. The default is
|
---|
[8558044] | 274 | <option>-Werror=format-overflow</option>,
|
---|
[110854d] | 275 | which generates false positives. This switch may be used with previous
|
---|
| 276 | versions of GCC too.
|
---|
| 277 | </para>
|
---|
[6742509c] | 278 | -->
|
---|
[110854d] | 279 |
|
---|
[3918112a] | 280 | <xi:include xmlns:xi="http://www.w3.org/2001/XInclude"
|
---|
| 281 | href="../../xincludes/meson-buildtype-release.xml"/>
|
---|
| 282 |
|
---|
[ae0944a3] | 283 | <para>
|
---|
| 284 | <parameter>-Dpamconfdir=/etc/pam.d</parameter>: Forces the PAM files to
|
---|
| 285 | be installed in /etc/pam.d rather than /usr/lib/pam.d.
|
---|
| 286 | </para>
|
---|
| 287 |
|
---|
[bdfc854] | 288 | <para>
|
---|
| 289 | <parameter>-Duserdb=false</parameter>: Removes a daemon that does not
|
---|
| 290 | offer any use under a BLFS configuration. If you wish to enable the
|
---|
| 291 | <application>userdbd</application> daemon, replace "false" with "true"
|
---|
| 292 | in the above meson command.
|
---|
| 293 | </para>
|
---|
| 294 |
|
---|
| 295 | <para>
|
---|
[229d0692] | 296 | <parameter>-Dhomed=false</parameter>: Removes a daemon that does not offer
|
---|
[bdfc854] | 297 | any use under a traditional BLFS configuration, especially using accounts
|
---|
| 298 | created with useradd. To enable systemd-homed, first ensure that you have
|
---|
[f1a479c7] | 299 | <xref linkend="cryptsetup"/> and <xref linkend="libpwquality"/> installed,
|
---|
| 300 | and then change "false" to "true" in the above meson command.
|
---|
[bdfc854] | 301 | </para>
|
---|
| 302 |
|
---|
| 303 | <!-- EDITORS NOTE: Explanation on removing userdbd and homed:
|
---|
| 304 | In BLFS, we do not fully support disk encryption. We offer instructions for
|
---|
| 305 | building 'cryptsetup' as a dependency, but we do not offer instructions for
|
---|
| 306 | actually configuring it. In addition, we generally do not include
|
---|
| 307 | functionality that could potentially conflict with other packages, or that
|
---|
| 308 | is not of any use to us (in an enterprise configuration using Thin Clients
|
---|
| 309 | or laptops with LUKS encryption, it could make sense though, but that isn't
|
---|
| 310 | the configuration that we natively support).
|
---|
| 311 |
|
---|
| 312 | A few of the complications of systemd-homed include:
|
---|
| 313 | - SSH Logins
|
---|
| 314 | - Disk Space Assignments
|
---|
| 315 | - UID Assignments (chown() on login)
|
---|
| 316 | (See https://cfp.all-systems-go.io/media/homed-asg2019.pdf)
|
---|
| 317 |
|
---|
| 318 | In an article I read when systemd-homed was originally unveiled, I remember
|
---|
| 319 | reading about systemd-homed causing problems with OpenSSH Private Key Auth
|
---|
| 320 | because the user would have to login at the console in order to unlock
|
---|
| 321 | their home directory, thus allowing the private key to be unlocked and
|
---|
| 322 | processed by OpenSSH. Since BLFS does not fully support encrypted disks,
|
---|
| 323 | and because systemd-homed is incompatible with our usage of useradd /
|
---|
| 324 | traditional UNIX users and groups, I advise that we take the following
|
---|
| 325 | approach to avoid any confusion:
|
---|
| 326 |
|
---|
| 327 | - Leave the added Short Descriptions for homectl and userdbctl
|
---|
| 328 | - Add the above command explanations and restore the previous behavior
|
---|
| 329 |
|
---|
[8558044] | 330 | Should we decide to enable homed by default anytime in the future,
|
---|
[bdfc854] | 331 | let's move cryptsetup to recommended or required.
|
---|
| 332 |
|
---|
| 333 | I would be open to discussing this after the next systemd version when
|
---|
| 334 | systemd-homed has matured a bit more. -renodr -->
|
---|
| 335 |
|
---|
| 336 | </sect2>
|
---|
| 337 |
|
---|
[f852e706] | 338 | <sect2 role="configuration">
|
---|
| 339 | <title>Configuring systemd</title>
|
---|
| 340 |
|
---|
| 341 | <para>
|
---|
[325d88d6] | 342 | The <filename>/etc/pam.d/system-session</filename> file needs to
|
---|
[f852e706] | 343 | be modified and a new file needs to be created in order for
|
---|
| 344 | <command>systemd-logind</command> to work correctly. Run the following
|
---|
| 345 | commands as the <systemitem class="username">root</systemitem> user:
|
---|
| 346 | </para>
|
---|
| 347 |
|
---|
[cb8d788] | 348 | <screen role="root"><userinput>grep 'pam_systemd' /etc/pam.d/system-session ||
|
---|
| 349 | cat >> /etc/pam.d/system-session << "EOF"
|
---|
[f852e706] | 350 | <literal># Begin Systemd addition
|
---|
[8558044] | 351 |
|
---|
[d267a13] | 352 | session required pam_loginuid.so
|
---|
| 353 | session optional pam_systemd.so
|
---|
[f852e706] | 354 |
|
---|
| 355 | # End Systemd addition</literal>
|
---|
| 356 | EOF
|
---|
| 357 |
|
---|
| 358 | cat > /etc/pam.d/systemd-user << "EOF"
|
---|
| 359 | <literal># Begin /etc/pam.d/systemd-user
|
---|
| 360 |
|
---|
[d267a13] | 361 | account required pam_access.so
|
---|
| 362 | account include system-account
|
---|
[f852e706] | 363 |
|
---|
[d267a13] | 364 | session required pam_env.so
|
---|
| 365 | session required pam_limits.so
|
---|
| 366 | session required pam_unix.so
|
---|
| 367 | session required pam_loginuid.so
|
---|
| 368 | session optional pam_keyinit.so force revoke
|
---|
| 369 | session optional pam_systemd.so
|
---|
[f852e706] | 370 |
|
---|
[d267a13] | 371 | auth required pam_deny.so
|
---|
| 372 | password required pam_deny.so
|
---|
[f852e706] | 373 |
|
---|
| 374 | # End /etc/pam.d/systemd-user</literal>
|
---|
| 375 | EOF</userinput></screen>
|
---|
| 376 |
|
---|
[a761478] | 377 | <!--
|
---|
[f852e706] | 378 | <para>
|
---|
| 379 | At this point, you should reload the systemd daemon, and reenter
|
---|
| 380 | multi-user mode with the following commands (as the
|
---|
[004a11fc] | 381 | <systemitem class="username">root</systemitem> user). If a desktop
|
---|
| 382 | manager is installed and you wish to reenter the graphical mode,
|
---|
| 383 | replace <userinput>multi-user.target</userinput> with
|
---|
| 384 | <userinput>graphical.target</userinput>:
|
---|
[f852e706] | 385 | </para>
|
---|
| 386 |
|
---|
[004a11fc] | 387 | <screen role="root"><userinput>systemctl daemon-reexec
|
---|
[a761478] | 388 | systemctl start multi-user.target</userinput></screen>-->
|
---|
[f852e706] | 389 |
|
---|
[b1532549] | 390 | <warning>
|
---|
| 391 | <para>
|
---|
| 392 | If upgrading from a previous version of systemd and an
|
---|
| 393 | initrd is used for system boot, you should generate a new initrd before
|
---|
| 394 | rebooting the system.
|
---|
| 395 | </para>
|
---|
| 396 | </warning>
|
---|
[f852e706] | 397 |
|
---|
| 398 | </sect2>
|
---|
| 399 |
|
---|
| 400 | <sect2 role="content">
|
---|
| 401 | <title>Contents</title>
|
---|
| 402 |
|
---|
| 403 | <para>
|
---|
| 404 | A list of the installed files, along with their short
|
---|
| 405 | descriptions can be found at
|
---|
[f0dc9578] | 406 | <ulink url="&lfs-root;/chapter08/systemd.html#contents-systemd"/>.
|
---|
[f852e706] | 407 | </para>
|
---|
| 408 |
|
---|
| 409 | <para>
|
---|
[a17c33d] | 410 | Listed below are the newly installed programs
|
---|
[f852e706] | 411 | along with short descriptions.
|
---|
| 412 | </para>
|
---|
| 413 |
|
---|
| 414 | <segmentedlist>
|
---|
| 415 | <segtitle>Installed Programs</segtitle>
|
---|
| 416 |
|
---|
| 417 | <seglistitem>
|
---|
| 418 | <seg>
|
---|
[6a609bd7] | 419 | <!-- maybe userdbd/userdbctl can go in LFS, try at next time -->
|
---|
[6cbf1b1] | 420 | homectl (if <xref linkend="cryptsetup"/> is installed),
|
---|
| 421 | systemd-cryptenroll (if <xref linkend="cryptsetup"/> is installed),
|
---|
[bdfc854] | 422 | and userdbctl (optionally)
|
---|
[f852e706] | 423 | </seg>
|
---|
| 424 | </seglistitem>
|
---|
| 425 | </segmentedlist>
|
---|
| 426 |
|
---|
| 427 | <variablelist>
|
---|
| 428 | <bridgehead renderas="sect3">Short Descriptions</bridgehead>
|
---|
| 429 | <?dbfo list-presentation="list"?>
|
---|
| 430 | <?dbhtml list-presentation="table"?>
|
---|
| 431 |
|
---|
[6a609bd7] | 432 | <varlistentry id="homectl">
|
---|
| 433 | <term><command>homectl</command></term>
|
---|
| 434 | <listitem>
|
---|
| 435 | <para>
|
---|
| 436 | is a tool to create, remove, change, or inspect a home directory
|
---|
| 437 | managed by <command>systemd-homed</command>; note that it's
|
---|
| 438 | useless for the classic UNIX users and home directories which
|
---|
| 439 | we are using in LFS/BLFS book
|
---|
| 440 | </para>
|
---|
| 441 | <indexterm zone="systemd homectl">
|
---|
| 442 | <primary sortas="b-homectl">homectl</primary>
|
---|
| 443 | </indexterm>
|
---|
| 444 | </listitem>
|
---|
| 445 | </varlistentry>
|
---|
| 446 |
|
---|
[6cbf1b1] | 447 | <varlistentry id="systemd-cryptenroll">
|
---|
| 448 | <term><command>systemd-cryptenroll</command></term>
|
---|
| 449 | <listitem>
|
---|
| 450 | <para>
|
---|
| 451 | Is used to enroll or remove a system from full disk encryption,
|
---|
| 452 | as well as set and query private keys and recovery keys
|
---|
| 453 | </para>
|
---|
| 454 | <indexterm zone="systemd systemd-cryptenroll">
|
---|
| 455 | <primary sortas="b-systemd-cryptenroll">systemd-cryptenroll</primary>
|
---|
| 456 | </indexterm>
|
---|
| 457 | </listitem>
|
---|
| 458 | </varlistentry>
|
---|
| 459 |
|
---|
[6a609bd7] | 460 | <varlistentry id="userdbctl">
|
---|
| 461 | <term><command>userdbctl</command></term>
|
---|
| 462 | <listitem>
|
---|
| 463 | <para>
|
---|
[ccc69593] | 464 | inspects users, groups, and group memberships
|
---|
[6a609bd7] | 465 | </para>
|
---|
| 466 | <indexterm zone="systemd userdbctl">
|
---|
| 467 | <primary sortas="b-userdbctl">userdbctl</primary>
|
---|
| 468 | </indexterm>
|
---|
| 469 | </listitem>
|
---|
| 470 | </varlistentry>
|
---|
| 471 |
|
---|
[f852e706] | 472 | <varlistentry id="pam_systemd">
|
---|
| 473 | <term><filename class="libraryfile">pam_systemd.so</filename></term>
|
---|
| 474 | <listitem>
|
---|
| 475 | <para>
|
---|
| 476 | is a PAM module used to register user sessions with the
|
---|
| 477 | <application>systemd</application> login manager,
|
---|
[4c24eb0a] | 478 | <command>systemd-logind</command>
|
---|
[f852e706] | 479 | </para>
|
---|
| 480 | <indexterm zone="systemd pam_systemd">
|
---|
| 481 | <primary sortas="c-pam_systemd">pam_systemd.so</primary>
|
---|
| 482 | </indexterm>
|
---|
| 483 | </listitem>
|
---|
| 484 | </varlistentry>
|
---|
| 485 |
|
---|
| 486 | </variablelist>
|
---|
| 487 |
|
---|
| 488 | </sect2>
|
---|
| 489 |
|
---|
| 490 | </sect1>
|
---|