summaryrefslogtreecommitdiffstats
path: root/etc/systemd/system/zfs-mount.service.in
diff options
context:
space:
mode:
Diffstat (limited to 'etc/systemd/system/zfs-mount.service.in')
-rw-r--r--etc/systemd/system/zfs-mount.service.in15
1 files changed, 15 insertions, 0 deletions
diff --git a/etc/systemd/system/zfs-mount.service.in b/etc/systemd/system/zfs-mount.service.in
new file mode 100644
index 000000000..f1056af31
--- /dev/null
+++ b/etc/systemd/system/zfs-mount.service.in
@@ -0,0 +1,15 @@
+[Unit]
+Description=Mount ZFS filesystems
+DefaultDependencies=no
+Wants=zfs-import-cache.service
+Wants=zfs-import-scan.service
+Requires=systemd-udev-settle.service
+After=systemd-udev-settle.service
+After=zfs-import-cache.service
+After=zfs-import-scan.service
+Before=local-fs.target
+
+[Service]
+Type=oneshot
+RemainAfterExit=yes
+ExecStart=@sbindir@/zfs mount -a