1[Unit]
2Description=Import ZFS pools by cache file
3Documentation=man:zpool(8)
4DefaultDependencies=no
5Requires=systemd-udev-settle.service
6After=systemd-udev-settle.service
7After=cryptsetup.target
8After=multipathd.service
9After=systemd-remount-fs.service
10Before=zfs-import.target
11ConditionFileNotEmpty=@sysconfdir@/zfs/zpool.cache
12ConditionPathIsDirectory=/sys/module/zfs
13
14[Service]
15Type=oneshot
16RemainAfterExit=yes
17EnvironmentFile=-@initconfdir@/zfs
18ExecStart=@sbindir@/zpool import -c @sysconfdir@/zfs/zpool.cache -aN $ZPOOL_IMPORT_OPTS
19
20[Install]
21WantedBy=zfs-import.target
22