2014-01-19 18:36:49 +04:00
|
|
|
[Unit]
|
|
|
|
Description=Import ZFS pools by cache file
|
2017-09-05 23:50:35 +03:00
|
|
|
Documentation=man:zpool(8)
|
2014-01-19 18:36:49 +04:00
|
|
|
DefaultDependencies=no
|
|
|
|
Requires=systemd-udev-settle.service
|
|
|
|
After=systemd-udev-settle.service
|
2014-07-26 20:45:15 +04:00
|
|
|
After=cryptsetup.target
|
2020-01-22 23:45:25 +03:00
|
|
|
After=multipathd.target
|
2016-05-25 20:48:12 +03:00
|
|
|
After=systemd-remount-fs.service
|
2017-10-30 23:18:26 +03:00
|
|
|
Before=zfs-import.target
|
2021-02-05 22:25:22 +03:00
|
|
|
ConditionFileNotEmpty=@sysconfdir@/zfs/zpool.cache
|
2020-08-02 03:13:15 +03:00
|
|
|
ConditionPathIsDirectory=/sys/module/zfs
|
2014-01-19 18:36:49 +04:00
|
|
|
|
|
|
|
[Service]
|
|
|
|
Type=oneshot
|
|
|
|
RemainAfterExit=yes
|
2022-02-22 23:59:11 +03:00
|
|
|
EnvironmentFile=-@initconfdir@/zfs
|
2021-06-14 18:48:53 +03:00
|
|
|
ExecStart=@sbindir@/zpool import -c @sysconfdir@/zfs/zpool.cache -aN $ZPOOL_IMPORT_OPTS
|
2016-05-25 20:48:12 +03:00
|
|
|
|
|
|
|
[Install]
|
2017-10-30 23:18:26 +03:00
|
|
|
WantedBy=zfs-import.target
|