systemd: Do not longer depend on authconfig

Message ID 20230217154822.2973-1-stefan.schantl@ipfire.org
State Accepted
Commit a95b73836a8d2c1e4ec11521fb54e3bfa2a8ccd9
Headers
Series systemd: Do not longer depend on authconfig |

Commit Message

Stefan Schantl Feb. 17, 2023, 3:48 p.m. UTC
  The pam_systemd module nowadays is part of the
default pam auth configuration - so this is not longer
required.

Signed-off-by: Stefan Schantl <stefan.schantl@ipfire.org>
---
 systemd/systemd.nm | 10 ----------
 1 file changed, 10 deletions(-)
  

Patch

diff --git a/systemd/systemd.nm b/systemd/systemd.nm
index 98f1aa9cc..5e3d69cb2 100644
--- a/systemd/systemd.nm
+++ b/systemd/systemd.nm
@@ -225,8 +225,6 @@  end
 
 packages
 	package %{name}
-		prerequires += authconfig
-
 		requires
 			dbus
 			hwdata
@@ -285,14 +283,6 @@  packages
 			# Reexec systemd daemon.
 			/usr/bin/systemctl daemon-reexec > /dev/null 2>&1 || :
 
-			# Make sure pam_systemd is enabled
-			if ! grep -q pam_systemd /etc/pam.d/system-auth-ac ; then
-				authconfig --update --nostart >/dev/null 2>&1 || :
-
-				# Try harder
-				grep -q pam_systemd /etc/pam.d/system-auth-ac || authconfig --updateall --nostart >/dev/null 2>&1 || :
-			fi
-
 			# Automatically spawn a getty on TTY1
 			/usr/bin/systemctl enable getty@.service >/dev/null 2>&1 || :