aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorBill Nottingham <notting@redhat.com>2012-06-19 12:17:40 -0400
committerBill Nottingham <notting@redhat.com>2012-06-19 12:17:40 -0400
commit0e8d247010bb776a5b55639f38575b4f95e019b3 (patch)
tree443cb23ae7ac0239e1b52e201aa9a4555d860e5b
parent412c4edd047a9380de9e6908437543ad744e05b3 (diff)
downloadinitscripts-0e8d247010bb776a5b55639f38575b4f95e019b3.tar
initscripts-0e8d247010bb776a5b55639f38575b4f95e019b3.tar.gz
initscripts-0e8d247010bb776a5b55639f38575b4f95e019b3.tar.bz2
initscripts-0e8d247010bb776a5b55639f38575b4f95e019b3.tar.xz
initscripts-0e8d247010bb776a5b55639f38575b4f95e019b3.zip
Only run fedora-storage-init if we have the tools that it invokes.
-rw-r--r--systemd/system/fedora-storage-init-late.service3
-rw-r--r--systemd/system/fedora-storage-init.service3
2 files changed, 6 insertions, 0 deletions
diff --git a/systemd/system/fedora-storage-init-late.service b/systemd/system/fedora-storage-init-late.service
index bfd4b73b..69ad0891 100644
--- a/systemd/system/fedora-storage-init-late.service
+++ b/systemd/system/fedora-storage-init-late.service
@@ -5,6 +5,9 @@ Conflicts=shutdown.target
After=cryptsetup.target fedora-storage-init.service
Before=local-fs.target shutdown.target
Wants=fedora-wait-storage.service
+ConditionFileIsExecutable=|/sbin/lvm
+ConditionFileIsExecutable=|/sbin/dmraid
+ConditionPathExists=|/etc/multipath.conf
[Service]
ExecStart=/lib/systemd/fedora-storage-init
diff --git a/systemd/system/fedora-storage-init.service b/systemd/system/fedora-storage-init.service
index add337b6..6d8e39ff 100644
--- a/systemd/system/fedora-storage-init.service
+++ b/systemd/system/fedora-storage-init.service
@@ -5,6 +5,9 @@ Conflicts=shutdown.target
After=fedora-wait-storage.service
Before=local-fs.target shutdown.target
Wants=fedora-wait-storage.service
+ConditionFileIsExecutable=|/sbin/lvm
+ConditionFileIsExecutable=|/sbin/dmraid
+ConditionPathExists=|/etc/multipath.conf
[Service]
ExecStart=/lib/systemd/fedora-storage-init