pstore: run only when /sys/fs/pstore is not empty
authorYu Watanabe <watanabe.yu+github@gmail.com>
Mon, 22 Jul 2019 05:09:12 +0000 (14:09 +0900)
committerYu Watanabe <watanabe.yu+github@gmail.com>
Mon, 22 Jul 2019 05:31:21 +0000 (14:31 +0900)
units/systemd-pstore.service.in

index fec2b1a..dde21bc 100644 (file)
@@ -10,6 +10,7 @@
 [Unit]
 Description=Platform Persistent Storage Archival
 Documentation=man:systemd-pstore(8)
+ConditionDirectoryNotEmpty=/sys/fs/pstore
 DefaultDependencies=no
 Wants=systemd-remount-fs.service
 After=systemd-remount-fs.service