[systemd/f17] add triggers to fix the disappearing default.target on upgrades from f16

Michal Schmidt michich at fedoraproject.org
Tue Mar 27 22:12:24 UTC 2012


commit 7b3c8466790df1cb7a7310ec662c8927a5bdce00
Author: Michal Schmidt <mschmidt at redhat.com>
Date:   Wed Mar 28 00:07:38 2012 +0200

    add triggers to fix the disappearing default.target on upgrades from f16
    
    Add triggers from Bill Nottingham to correct the damage done by
    the obsoleted systemd-units's preun scriptlet (#807457).

 systemd.spec |   17 ++++++++++++++++-
 1 files changed, 16 insertions(+), 1 deletions(-)
---
diff --git a/systemd.spec b/systemd.spec
index eb2eb5c..528307e 100644
--- a/systemd.spec
+++ b/systemd.spec
@@ -3,7 +3,7 @@
 Name:           systemd
 Url:            http://www.freedesktop.org/wiki/Software/systemd
 Version:        44
-Release:        3%{?gitcommit:.git%{gitcommit}}%{?dist}.1
+Release:        4%{?gitcommit:.git%{gitcommit}}%{?dist}
 License:        GPLv2+
 Group:          System Environment/Base
 Summary:        A System and Service Manager
@@ -267,6 +267,17 @@ if [ $1 -eq 0 ] ; then
         /bin/rm -f /etc/systemd/system/default.target >/dev/null 2>&1 || :
 fi
 
+%triggerun -- systemd-units < 38-5
+mv /etc/systemd/system/default.target /etc/systemd/system/default.target.save >/dev/null 2>&1 || :
+
+%triggerpostun -- systemd-units < 38-5
+mv /etc/systemd/system/default.target.save /etc/systemd/system/default.target >/dev/null 2>&1
+/bin/systemctl enable \
+        getty at .service \
+        remote-fs.target \
+        systemd-readahead-replay.service \
+        systemd-readahead-collect.service
+
 %files
 %doc %{_docdir}/systemd
 %dir %{_sysconfdir}/systemd
@@ -403,6 +414,10 @@ fi
 %{_bindir}/systemd-analyze
 
 %changelog
+* Wed Mar 28 2012 Michal Schmidt <mschmidt at redhat.com> - 44-4
+- Add triggers from Bill Nottingham to correct the damage done by
+  the obsoleted systemd-units's preun scriptlet (#807457).
+
 * Tue Mar 27 2012 Michal Schmidt <mschmidt at redhat.com> - 44-3.fc17.1
 - Undo "Don't build the gtk parts anymore". It's for F>=18 only.
 


More information about the scm-commits mailing list