richardphibel / rpms / systemd

Forked from rpms/systemd a year ago
Clone
5808e7
From a7247899f156761934bcb4b380861b3d3ec5449f Mon Sep 17 00:00:00 2001
5808e7
From: Yu Watanabe <watanabe.yu+github@gmail.com>
5808e7
Date: Mon, 22 Jul 2019 14:09:12 +0900
5808e7
Subject: [PATCH] pstore: run only when /sys/fs/pstore is not empty
5808e7
5808e7
(cherry picked from commit 6d4f213b1f6afb2901f0d97cec0e28e20809b713)
5808e7
5808e7
Related: #2158832
5808e7
---
5808e7
 units/systemd-pstore.service.in | 1 +
5808e7
 1 file changed, 1 insertion(+)
5808e7
5808e7
diff --git a/units/systemd-pstore.service.in b/units/systemd-pstore.service.in
5808e7
index fec2b1aebf..dde21bc33e 100644
5808e7
--- a/units/systemd-pstore.service.in
5808e7
+++ b/units/systemd-pstore.service.in
5808e7
@@ -10,6 +10,7 @@
5808e7
 [Unit]
5808e7
 Description=Platform Persistent Storage Archival
5808e7
 Documentation=man:systemd-pstore(8)
5808e7
+ConditionDirectoryNotEmpty=/sys/fs/pstore
5808e7
 DefaultDependencies=no
5808e7
 Wants=systemd-remount-fs.service
5808e7
 After=systemd-remount-fs.service