[dkms] Fix SysV/systemd upgrade

Simone Caronni slaanesh at fedoraproject.org
Sat Jun 29 10:14:08 UTC 2013


commit 7cba92f40126ab274490d2ac0a475abd1822537a
Author: Simone Caronni <negativo17 at gmail.com>
Date:   Sat Jun 29 12:12:39 2013 +0200

    Fix SysV/systemd upgrade

 dkms.spec |   11 +++++++----
 1 files changed, 7 insertions(+), 4 deletions(-)
---
diff --git a/dkms.spec b/dkms.spec
index f3b08bb..757d998 100644
--- a/dkms.spec
+++ b/dkms.spec
@@ -5,7 +5,7 @@
 Summary:        Dynamic Kernel Module Support Framework
 Name:           dkms
 Version:        2.2.0.3
-Release:        9%{dist}
+Release:        10%{dist}
 License:        GPLv2+
 Group:          System Environment/Base
 BuildArch:      noarch
@@ -86,18 +86,18 @@ rm -rf %{buildroot}
 
 %if 0%{?fedora} >= 20 || 0%{?rhel} >= 7
 
-%triggerun -- dkms < 2.2.0.3-6
+%triggerun -- dkms < 2.2.0.3-9
 # Save the current service runlevel info
 # User must manually run systemd-sysv-convert --apply httpd
 # to migrate them to systemd targets
 /usr/bin/systemd-sysv-convert --save %{name}_autoinstaller >/dev/null 2>&1 ||:
 
 # If the package is allowed to autostart:
-/bin/systemctl --no-reload enable %{name}_autoinstaller.service >/dev/null 2>&1 ||:
+/bin/systemctl --no-reload enable %{name}.service >/dev/null 2>&1 ||:
 
 # Run these because the SysV package being removed won't do them
 /sbin/chkconfig --del %{name}_autoinstaller >/dev/null 2>&1 || :
-/bin/systemctl try-restart %{name}_autoinstaller.service >/dev/null 2>&1 || :
+/bin/systemctl try-restart %{name}.service >/dev/null 2>&1 || :
 
 %post
 %systemd_post %{name}_autoinstaller.service
@@ -145,6 +145,9 @@ fi
 %{_sysconfdir}/bash_completion.d/%{name}
 
 %changelog
+* Sat Jun 29 2013 Simone Caronni <negativo17 at gmail.com> - 2.2.0.3-10
+- Fix SysV/systemd upgrade.
+
 * Wed Jun 26 2013 Simone Caronni <negativo17 at gmail.com> - 2.2.0.3-9
 - Update systemd requirements.
 


More information about the scm-commits mailing list