PREIN
/bin/sh
# (cg) Cannot use rpm-helper scripts as it results in a cyclical dep as
# rpm-helper requires systemd-units which in turn requires systemd...
if ! getent group systemd-journal >/dev/null 2>&1; then
/usr/sbin/groupadd -r systemd-journal >/dev/null || :
fi
# Write on first install or upgrade from MGA3.
if [ ! -r /usr/lib/sysctl.d/50-default.conf ]; then
if [ ! -d /etc/sysctl.d ]; then
mkdir -m 0755 /etc/sysctl.d
fi
cat > /etc/sysctl.d/51-alt-sysrq.conf << EOF
# This file ensures that the Alt+SysRq Magic keys still work.
# This setting is insecure, although commonly expected and you can remove this
# file to disable this feature. It will not be readded on future systemd
# upgrades/updates.
# http://en.wikipedia.org/wiki/Magic_SysRq_key#Security
kernel.sysrq = 1
EOF
fi
POSTIN
/bin/sh
/usr/bin/systemd-machine-id-setup > /dev/null 2>&1 || :
/usr/lib/systemd/systemd-random-seed save >/dev/null 2>&1 || :
#/usr/bin/systemctl daemon-reexec > /dev/null 2>&1 || :
Triggers
glibc
/bin/sh
# reexec daemon on self or glibc update to avoid busy / on shutdown
# trigger is executed on both self and target install so no need to have
# extra own post
if [ $1 -ge 2 -o $2 -ge 2 ] ; then
/usr/bin/systemctl daemon-reexec 2>&1 || :
fi
systemd <
208
/bin/sh
chgrp -R systemd-journal /var/log/journal || :
chmod 02755 /var/log/journal || :
if [ -f /etc/machine-id ]; then
chmod 02755 /var/log/journal/$(cat /etc/machine-id) || :
fi