flush: only detect lack of flush support in one place
[zfs.git] / etc / systemd / system / zfs-import-scan.service.in
blobc5dd45d87e683bd78d0d09c506f5b3db179edf2e
1 [Unit]
2 Description=Import ZFS pools by device scanning
3 Documentation=man:zpool(8)
4 DefaultDependencies=no
5 Requires=systemd-udev-settle.service
6 After=systemd-udev-settle.service
7 After=cryptsetup.target
8 After=multipathd.service
9 Before=zfs-import.target
10 ConditionFileNotEmpty=!@sysconfdir@/zfs/zpool.cache
11 ConditionPathIsDirectory=/sys/module/zfs
13 [Service]
14 Type=oneshot
15 RemainAfterExit=yes
16 EnvironmentFile=-@initconfdir@/zfs
17 ExecStart=@sbindir@/zpool import -aN -o cachefile=none $ZPOOL_IMPORT_OPTS
19 [Install]
20 WantedBy=zfs-import.target