summaryrefslogtreecommitdiffstats
path: root/etc/systemd/system/zfs-volume-wait.service.in
diff options
context:
space:
mode:
authorBrian Behlendorf <[email protected]>2020-11-28 11:11:18 -0800
committerBrian Behlendorf <[email protected]>2020-11-30 09:44:08 -0800
commit275720443494f5f8591495b778263dc5647ddc7f (patch)
treeca9503de147d68ee11bb678d007e3258b7c74921 /etc/systemd/system/zfs-volume-wait.service.in
parent24a6f8384706e94bb3780e8d6f040872ecd2a71e (diff)
Verify zfs module loaded before starting services
Extend the change made in ae12b02 to verify the zfs kernel modules are loaded to the rest of the OpenZFS services. If the modules aren't loaded the neither the share, volume, or and zed services can be started. Signed-off-by: Brian Behlendorf <[email protected]> Closes #11243
Diffstat (limited to 'etc/systemd/system/zfs-volume-wait.service.in')
-rw-r--r--etc/systemd/system/zfs-volume-wait.service.in1
1 files changed, 1 insertions, 0 deletions
diff --git a/etc/systemd/system/zfs-volume-wait.service.in b/etc/systemd/system/zfs-volume-wait.service.in
index 75bd9fcdd..4c77724d8 100644
--- a/etc/systemd/system/zfs-volume-wait.service.in
+++ b/etc/systemd/system/zfs-volume-wait.service.in
@@ -3,6 +3,7 @@ Description=Wait for ZFS Volume (zvol) links in /dev
DefaultDependencies=no
After=systemd-udev-settle.service
After=zfs-import.target
+ConditionPathIsDirectory=/sys/module/zfs
[Service]
Type=oneshot