summarylogtreecommitdiffstats
path: root/systemd.install
diff options
context:
space:
mode:
authorNicolas Iooss2016-10-21 22:05:06 +0200
committerNicolas Iooss2016-10-21 22:05:06 +0200
commit92dc9eaffeffd3322de056c398f3ca3ee22a3947 (patch)
treed46e2ba23250fec24005d0ca34104b710921b07c /systemd.install
parentfe26e18109aa4ac6ae38dcd367bb451910218deb (diff)
downloadaur-92dc9eaffeffd3322de056c398f3ca3ee22a3947.tar.gz
systemd-selinux 231-4 update
Diffstat (limited to 'systemd.install')
-rw-r--r--systemd.install12
1 files changed, 5 insertions, 7 deletions
diff --git a/systemd.install b/systemd.install
index f2978d9738f4..b59de2008a1c 100644
--- a/systemd.install
+++ b/systemd.install
@@ -10,12 +10,6 @@ add_journal_acls() {
:
}
-maybe_reexec() {
- if sd_booted; then
- systemctl --system daemon-reexec
- fi
-}
-
post_common() {
systemd-sysusers
journalctl --update-catalog
@@ -63,7 +57,11 @@ post_install() {
post_upgrade() {
post_common "$@"
- maybe_reexec "$@"
+ # don't reexec if the old version is 231-1 or 231-2.
+ # https://github.com/systemd/systemd/commit/bd64d82c1c
+ if [[ $1 != 231-[12] ]] && sd_booted; then
+ systemctl --system daemon-reexec
+ fi
local v upgrades=(
216-2