aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorXi Ruoyao <xry111@xry111.site>2022-05-29 10:34:42 +0800
committerXi Ruoyao <xry111@xry111.site>2022-05-29 12:29:20 +0800
commit77e340bc4ac898fa3f737ee8e8f0a0e6093d3c6c (patch)
tree0b6851797d70aafee50a10de5417d5e5c29132a5
parentf435668903be3c74b1a56317a62ed8cf0986e06c (diff)
systemd: use a better way to disable /usr/lib/pam.d
-rw-r--r--chapter08/systemd.xml12
1 files changed, 8 insertions, 4 deletions
diff --git a/chapter08/systemd.xml b/chapter08/systemd.xml
index 76587bcca..c5ffc9630 100644
--- a/chapter08/systemd.xml
+++ b/chapter08/systemd.xml
@@ -65,6 +65,7 @@ meson --prefix=/usr \
-Duserdb=false \
-Dman=false \
-Dmode=release \
+ -Dpamconfdir=no \
-Ddocdir=/usr/share/doc/systemd-&systemd-version; \
..</userinput></screen>
@@ -159,6 +160,13 @@ meson --prefix=/usr \
</listitem>
</varlistentry>
+ <varlistentry>
+ <term><parameter>-Dpamconfdir=no</parameter></term>
+ <listitem>
+ <para>Prevent the installation of a PAM configuration file not
+ functional on LFS.</para>
+ </listitem>
+ </varlistentry>
</variablelist>
<para>Compile the package:</para>
@@ -175,10 +183,6 @@ meson --prefix=/usr \
component in the path. -->
<screen><userinput remap="install">tar -xf ../../systemd-man-pages-&systemd-man-version;.tar.xz --strip-components=1 -C /usr/share/man</userinput></screen>
- <para>Remove a useless directory:</para>
-
-<screen><userinput remap="install">rm -rf /usr/lib/pam.d</userinput></screen>
-
<para>Create the <filename>/etc/machine-id</filename> file needed by
<command>systemd-journald</command>:</para>