dcavalca / rpms / systemd

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