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