From 77e340bc4ac898fa3f737ee8e8f0a0e6093d3c6c Mon Sep 17 00:00:00 2001 From: Xi Ruoyao Date: Sun, 29 May 2022 10:34:42 +0800 Subject: systemd: use a better way to disable /usr/lib/pam.d --- chapter08/systemd.xml | 12 ++++++++---- 1 file changed, 8 insertions(+), 4 deletions(-) (limited to 'chapter08') 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; \ .. @@ -159,6 +160,13 @@ meson --prefix=/usr \ + + -Dpamconfdir=no + + Prevent the installation of a PAM configuration file not + functional on LFS. + + Compile the package: @@ -175,10 +183,6 @@ meson --prefix=/usr \ component in the path. --> tar -xf ../../systemd-man-pages-&systemd-man-version;.tar.xz --strip-components=1 -C /usr/share/man - Remove a useless directory: - -rm -rf /usr/lib/pam.d - Create the /etc/machine-id file needed by systemd-journald: -- cgit v1.2.3-54-g00ecf