[packages/systemd] - rel 2 - update hwdb in udev-core post - set up acl for group logs to access systemd journal - forc
baggins
baggins at pld-linux.org
Tue Oct 15 21:11:00 CEST 2013
commit 3cfd9ace4d5987ff293148c75b09fc64a9460bf8
Author: Jan Rękorajski <baggins at pld-linux.org>
Date: Tue Oct 15 21:09:06 2013 +0200
- rel 2
- update hwdb in udev-core post
- set up acl for group logs to access systemd journal
- force systemctl to connect to system manager
- do a bit of janitorial work in systemd post/postun
systemd.spec | 15 ++++++++++-----
1 file changed, 10 insertions(+), 5 deletions(-)
---
diff --git a/systemd.spec b/systemd.spec
index 658db7a..411964d 100644
--- a/systemd.spec
+++ b/systemd.spec
@@ -16,7 +16,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: 208
-Release: 1
+Release: 2
Epoch: 1
License: GPL v2+ (udev), LGPL v2.1+ (the rest)
Group: Base
@@ -101,6 +101,7 @@ Requires: %{name}-libs = %{epoch}:%{version}-%{release}
Requires: %{name}-units = %{epoch}:%{version}-%{release}
Requires(postun): /usr/sbin/groupdel
Requires(postun): /usr/sbin/userdel
+Requires(post): /bin/setfacl
Requires(pre): /bin/id
Requires(pre): /usr/bin/getgid
Requires(pre): /usr/sbin/groupadd
@@ -780,13 +781,16 @@ rm -rf $RPM_BUILD_ROOT
%groupadd -g 288 systemd-journal
%post
-# should we?
-#setfacl -nm g:logs:rx,d:g:logs:rx /var/log/journal
-/bin/systemd-machine-id-setup > /dev/null 2>&1 || :
-/bin/systemctl daemon-reexec > /dev/null 2>&1 || :
+/bin/systemd-machine-id-setup >/dev/null 2>&1 || :
+/usr/lib/systemd/systemd-random-seed save >/dev/null 2>&1 || :
+/bin/systemctl --system daemon-reexec >/dev/null 2>&1 || :
+/bin/journalctl --update-catalog >/dev/null 2>&1 || :
+# Apply ACL to the journal directory
+/bin/setfacl -Rnm g:logs:rx,d:g:logs:rx /var/log/journal >/dev/null 2>&1 || :
%postun
if [ $1 -ge 1 ]; then
+ /bin/systemctl --system daemon-reload >/dev/null 2>&1 || :
/bin/systemctl try-restart systemd-logind.service >/dev/null 2>&1 || :
fi
if [ "$1" = "0" ]; then
@@ -922,6 +926,7 @@ fi
/sbin/udevadm info --convert-db
%post -n udev-core
+/sbin/udevadm hwdb --update >/dev/null 2>&1 || :
if [ $1 -gt 1 ]; then
if [ ! -x /bin/systemd_booted ] || ! /bin/systemd_booted; then
if grep -qs devtmpfs /proc/mounts && [ -n "$(pidof udevd)" ]; then
================================================================
---- gitweb:
http://git.pld-linux.org/gitweb.cgi/packages/systemd.git/commitdiff/3cfd9ace4d5987ff293148c75b09fc64a9460bf8
More information about the pld-cvs-commit
mailing list