[packages/systemd] - added trigger to restore vconsole.conf post systemd-consoled removal - rel 3

baggins baggins at pld-linux.org
Tue Feb 28 19:40:21 CET 2017


commit 6db30c1e73223e78c23f5ed72335c74e5e10147b
Author: Jan Rękorajski <baggins at pld-linux.org>
Date:   Tue Feb 28 19:39:42 2017 +0100

    - added trigger to restore vconsole.conf post systemd-consoled removal
    - rel 3

 systemd.spec | 8 +++++++-
 1 file changed, 7 insertions(+), 1 deletion(-)
---
diff --git a/systemd.spec b/systemd.spec
index 64bcb24..3164e1b 100644
--- a/systemd.spec
+++ b/systemd.spec
@@ -26,7 +26,7 @@ Summary(pl.UTF-8):	systemd - zarządca systemu i usług dla Linuksa
 Name:		systemd
 # Verify ChangeLog and NEWS when updating (since there are incompatible/breaking changes very often)
 Version:	232
-Release:	2
+Release:	3
 Epoch:		1
 License:	GPL v2+ (udev), LGPL v2.1+ (the rest)
 Group:		Base
@@ -855,6 +855,12 @@ chmod g+s /var/log/journal
 # https://bugs.freedesktop.org/show_bug.cgi?id=89202
 /bin/getfacl -p /var/log/journal/$(cat /etc/machine-id) | grep -v '^#' | sort -u | /bin/setfacl -R --set-file=- /var/log/journal/$(cat /etc/machine-id) || :
 
+%triggerpostun -- systemd-consoled < 1:232-1
+if [ -f %{_sysconfdir}/vconsole.conf.rpmsave ]; then
+	%{__mv} -f %{_sysconfdir}/vconsole.conf %{_sysconfdir}/vconsole.conf.rpmnew
+	%{__mv} -f %{_sysconfdir}/vconsole.conf.rpmsave %{_sysconfdir}/vconsole.conf
+fi
+
 %post libs -p /sbin/ldconfig
 %postun libs -p /sbin/ldconfig
 
================================================================

---- gitweb:

http://git.pld-linux.org/gitweb.cgi/packages/systemd.git/commitdiff/6db30c1e73223e78c23f5ed72335c74e5e10147b



More information about the pld-cvs-commit mailing list