summarylogtreecommitdiffstats
path: root/systemd.install
diff options
context:
space:
mode:
authorAndré Fabian Silva Delgado2017-01-17 01:08:01 -0300
committerAndré Fabian Silva Delgado2017-01-17 01:08:01 -0300
commitc0968e5bfdb65adf2a342be11294d4bad9028bf3 (patch)
treeea9788468b187aa511be69274d7aa06e66e9cb3b /systemd.install
parent1626da3617c9d1cbc79ac3c8646594acf3d4d91d (diff)
downloadaur-systemd-knock.tar.gz
Update to 232-1
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