[systemd] Use --nostart on authconfig calls.

Peter Jones pjones at fedoraproject.org
Fri Apr 8 18:07:38 UTC 2011


commit 143c96cb243a8fedeec03d6bdd446d6e8ff16353
Author: Peter Jones <pjones at redhat.com>
Date:   Fri Apr 8 14:06:01 2011 -0400

    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 files 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


More information about the scm-commits mailing list