|
Zbigniew Jędrzejewski-Szmek |
ea1976 |
From ce5c8ab64093246bd0cdd2037789e947d80551ca Mon Sep 17 00:00:00 2001
|
|
Zbigniew Jędrzejewski-Szmek |
ea1976 |
From: =?UTF-8?q?Zbigniew=20J=C4=99drzejewski-Szmek?= <zbyszek@in.waw.pl>
|
|
Zbigniew Jędrzejewski-Szmek |
ea1976 |
Date: Sun, 2 Nov 2014 21:45:42 -0500
|
|
Zbigniew Jędrzejewski-Szmek |
ea1976 |
Subject: [PATCH] units: order sd-journal-flush after sd-remount-fs
|
|
Zbigniew Jędrzejewski-Szmek |
ea1976 |
|
|
Zbigniew Jędrzejewski-Szmek |
ea1976 |
Otherwise we could attempt to flush the journal while /var/log/ was
|
|
Zbigniew Jędrzejewski-Szmek |
ea1976 |
still ro, and silently skip journal flushing.
|
|
Zbigniew Jędrzejewski-Szmek |
ea1976 |
|
|
Zbigniew Jędrzejewski-Szmek |
ea1976 |
The way that errors in flushing are handled should still be changed to
|
|
Zbigniew Jędrzejewski-Szmek |
ea1976 |
be more transparent and robust.
|
|
Zbigniew Jędrzejewski-Szmek |
ea1976 |
|
|
Zbigniew Jędrzejewski-Szmek |
ea1976 |
(cherry picked from commit 1f1926aa5e836caa3bd6df43704aecd606135103)
|
|
Zbigniew Jędrzejewski-Szmek |
ea1976 |
---
|
|
Zbigniew Jędrzejewski-Szmek |
ea1976 |
units/systemd-journal-flush.service.in | 1 +
|
|
Zbigniew Jędrzejewski-Szmek |
ea1976 |
1 file changed, 1 insertion(+)
|
|
Zbigniew Jędrzejewski-Szmek |
ea1976 |
|
|
Zbigniew Jędrzejewski-Szmek |
ea1976 |
diff --git a/units/systemd-journal-flush.service.in b/units/systemd-journal-flush.service.in
|
|
Zbigniew Jędrzejewski-Szmek |
ea1976 |
index fa290897d6..98c91b4bc5 100644
|
|
Zbigniew Jędrzejewski-Szmek |
ea1976 |
--- a/units/systemd-journal-flush.service.in
|
|
Zbigniew Jędrzejewski-Szmek |
ea1976 |
+++ b/units/systemd-journal-flush.service.in
|
|
Zbigniew Jędrzejewski-Szmek |
ea1976 |
@@ -11,6 +11,7 @@ Documentation=man:systemd-journald.service(8) man:journald.conf(5)
|
|
Zbigniew Jędrzejewski-Szmek |
ea1976 |
DefaultDependencies=no
|
|
Zbigniew Jędrzejewski-Szmek |
ea1976 |
Requires=systemd-journald.service
|
|
Zbigniew Jędrzejewski-Szmek |
ea1976 |
After=systemd-journald.service
|
|
Zbigniew Jędrzejewski-Szmek |
ea1976 |
+After=systemd-remount-fs.service
|
|
Zbigniew Jędrzejewski-Szmek |
ea1976 |
Before=systemd-user-sessions.service systemd-tmpfiles-setup.service
|
|
Zbigniew Jędrzejewski-Szmek |
ea1976 |
RequiresMountsFor=/var/log/journal
|
|
Zbigniew Jędrzejewski-Szmek |
ea1976 |
|