|
Zbigniew Jędrzejewski-Szmek |
5d6eed |
From 511b40e49641a8f59014472ce8e96a7ef61f3cad Mon Sep 17 00:00:00 2001
|
|
Zbigniew Jędrzejewski-Szmek |
03e93e |
From: Lennart Poettering <lennart@poettering.net>
|
|
Zbigniew Jędrzejewski-Szmek |
03e93e |
Date: Thu, 29 Dec 2016 10:38:52 +0100
|
|
Zbigniew Jędrzejewski-Szmek |
03e93e |
Subject: [PATCH] units: fix condition for
|
|
Zbigniew Jędrzejewski-Szmek |
03e93e |
systemd-journal-catalog-update.service (#4990)
|
|
Zbigniew Jędrzejewski-Szmek |
03e93e |
|
|
Zbigniew Jędrzejewski-Szmek |
03e93e |
The service is supposed to regenerate the catalog index whenever /usr is
|
|
Zbigniew Jędrzejewski-Szmek |
03e93e |
updated, but /var is not. Hence the ConditionNeedsUpdate= line should
|
|
Zbigniew Jędrzejewski-Szmek |
03e93e |
actually reference /var, as that's where the index file is located.
|
|
Zbigniew Jędrzejewski-Szmek |
03e93e |
(cherry picked from commit 73c729d76871a64840a4d89fc61a5a64cc96e596)
|
|
Zbigniew Jędrzejewski-Szmek |
03e93e |
---
|
|
Zbigniew Jędrzejewski-Szmek |
03e93e |
units/systemd-journal-catalog-update.service.in | 2 +-
|
|
Zbigniew Jędrzejewski-Szmek |
03e93e |
1 file changed, 1 insertion(+), 1 deletion(-)
|
|
Zbigniew Jędrzejewski-Szmek |
03e93e |
|
|
Zbigniew Jędrzejewski-Szmek |
03e93e |
diff --git a/units/systemd-journal-catalog-update.service.in b/units/systemd-journal-catalog-update.service.in
|
|
Zbigniew Jędrzejewski-Szmek |
03e93e |
index 6370dd478f..276f052b1a 100644
|
|
Zbigniew Jędrzejewski-Szmek |
03e93e |
--- a/units/systemd-journal-catalog-update.service.in
|
|
Zbigniew Jędrzejewski-Szmek |
03e93e |
+++ b/units/systemd-journal-catalog-update.service.in
|
|
Zbigniew Jędrzejewski-Szmek |
03e93e |
@@ -12,7 +12,7 @@ DefaultDependencies=no
|
|
Zbigniew Jędrzejewski-Szmek |
03e93e |
Conflicts=shutdown.target
|
|
Zbigniew Jędrzejewski-Szmek |
03e93e |
After=local-fs.target
|
|
Zbigniew Jędrzejewski-Szmek |
03e93e |
Before=sysinit.target shutdown.target systemd-update-done.service
|
|
Zbigniew Jędrzejewski-Szmek |
03e93e |
-ConditionNeedsUpdate=/etc
|
|
Zbigniew Jędrzejewski-Szmek |
03e93e |
+ConditionNeedsUpdate=/var
|
|
Zbigniew Jędrzejewski-Szmek |
03e93e |
|
|
Zbigniew Jędrzejewski-Szmek |
03e93e |
[Service]
|
|
Zbigniew Jędrzejewski-Szmek |
03e93e |
Type=oneshot
|