From 143c96cb243a8fedeec03d6bdd446d6e8ff16353 Mon Sep 17 00:00:00 2001 From: Peter Jones Date: Fri, 8 Apr 2011 14:06:01 -0400 Subject: [PATCH] Use --nostart on authconfig calls. Don't start ypdomainname and such when we enable pam modules in the scriptlets. Starting these services causes mock composes to reset the host system's yp domain name, causing login failures. --- systemd.spec | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/systemd.spec b/systemd.spec index 33e2ebd..008dd67 100644 --- a/systemd.spec +++ b/systemd.spec @@ -134,10 +134,10 @@ rm -rf $RPM_BUILD_ROOT # Make sure pam_systemd is enabled if ! /bin/grep -q pam_systemd /etc/pam.d/system-auth-ac ; then - /usr/sbin/authconfig --update >/dev/null 2>&1 || : + /usr/sbin/authconfig --update --nostart >/dev/null 2>&1 || : # Try harder - /bin/grep -q pam_systemd /etc/pam.d/system-auth-ac || /usr/sbin/authconfig --updateall >/dev/null 2>&1 || : + /bin/grep -q pam_systemd /etc/pam.d/system-auth-ac || /usr/sbin/authconfig --updateall --nostart >/dev/null 2>&1 || : fi %post units