polkit: Remove unnecessary configuration section

Now polkit installs a correct PAM location for LFS.  The building system
checks if /etc/lfs-release exists to know if the system is LFS.  If
/etc/lfs-release is not created, we can also specify it manually with
-Dos_type=lfs.

Link: https://gitlab.freedesktop.org/polkit/polkit/-/merge_requests/117
This commit is contained in:
Xi Ruoyao 2023-03-02 02:24:00 +08:00
parent 8de6bb81c2
commit 1121404454
No known key found for this signature in database
GPG Key ID: ACAAD20E19E710E3

View File

@ -288,6 +288,13 @@ rm -v /tmp/*.service</userinput></screen>
href="../../xincludes/static-libraries.xml"/>
-->
<para>
<option>-Dos_type=lfs</option>: Use this switch if you did not create
the <filename>/etc/lfs-release</filename> file or distribution auto
detection will fail and you will be unable to use
<application>Polkit</application>.
</para>
<para>
<option>-Dauthfw=shadow</option>: This switch enables the
package to use the <application>Shadow</application> rather than the
@ -323,44 +330,6 @@ rm -v /tmp/*.service</userinput></screen>
</sect2>
<sect2 role="configuration">
<title>Configuring Polkit</title>
<sect3>
<title>PAM Configuration</title>
<note>
<para>
If you did not build <application>Polkit</application> with
<application>Linux PAM</application> support, you can skip this
section.
</para>
</note>
<para>
If you have built <application>Polkit</application> with
<application>Linux PAM</application> support, you need to modify
the default PAM configuration file which was installed by default to get
<application>Polkit</application> to work correctly with BLFS. Issue the
following commands as the <systemitem class="username">root</systemitem>
user to create the configuration file for <application>Linux PAM</application>:
</para>
<screen role="root"><userinput>cat &gt; /etc/pam.d/polkit-1 &lt;&lt; "EOF"
<literal># Begin /etc/pam.d/polkit-1
auth include system-auth
account include system-account
password include system-password
session include system-session
# End /etc/pam.d/polkit-1</literal>
EOF</userinput></screen>
</sect3>
</sect2>
<sect2 role="content">
<title>Contents</title>