Remount datasets on soft-reboot
[zfs.git] / etc / systemd / system / zfs-mount.service.in
blob41c02c8238ca597cf62aa27ca1fbc4a04b183299
1 [Unit]
2 Description=Mount ZFS filesystems
3 Documentation=man:zfs(8)
4 DefaultDependencies=no
5 After=systemd-udev-settle.service
6 After=zfs-import.target
7 After=systemd-remount-fs.service
8 Before=local-fs.target
9 ConditionPathIsDirectory=/sys/module/zfs
11 # This merely tells the service manager
12 # that unmounting everything undoes the
13 # effect of this service. No extra logic
14 # is ran as a result of these settings.
15 Conflicts=umount.target
16 Before=umount.target
18 [Service]
19 Type=oneshot
20 RemainAfterExit=yes
21 EnvironmentFile=-@initconfdir@/zfs
22 ExecStart=@sbindir@/zfs mount -a
24 [Install]
25 WantedBy=zfs.target