5808e7
From 818ddd1efd751ef50f9960920284465befe9d704 Mon Sep 17 00:00:00 2001
5808e7
From: Lennart Poettering <lennart@poettering.net>
5808e7
Date: Wed, 8 Apr 2020 16:25:03 +0200
5808e7
Subject: [PATCH] units: make sure systemd-pstore stops at shutdown
5808e7
5808e7
This doesn't matter too much given that the service doesn't do anything
5808e7
on shutdown, but let's still stop it to make things cleaner.
5808e7
5808e7
(cherry picked from commit b0c1a07654c80d3cbbbcc52f860d4206707c0b08)
5808e7
5808e7
Related: #2158832
5808e7
---
5808e7
 units/systemd-pstore.service.in | 3 ++-
5808e7
 1 file changed, 2 insertions(+), 1 deletion(-)
5808e7
5808e7
diff --git a/units/systemd-pstore.service.in b/units/systemd-pstore.service.in
5808e7
index 9a86f3145c..8cbf264a99 100644
5808e7
--- a/units/systemd-pstore.service.in
5808e7
+++ b/units/systemd-pstore.service.in
5808e7
@@ -14,7 +14,8 @@ ConditionDirectoryNotEmpty=/sys/fs/pstore
5808e7
 ConditionVirtualization=!container
5808e7
 DefaultDependencies=no
5808e7
 After=systemd-remount-fs.service
5808e7
-Before=sysinit.target
5808e7
+Conflicts=shutdown.target
5808e7
+Before=sysinit.target shutdown.target
5808e7
 
5808e7
 [Service]
5808e7
 Type=oneshot