2014-01-19 18:36:49 +04:00
|
|
|
[Unit]
|
|
|
|
Description=Import ZFS pools by device scanning
|
|
|
|
DefaultDependencies=no
|
|
|
|
Requires=systemd-udev-settle.service
|
|
|
|
After=systemd-udev-settle.service
|
2014-07-26 20:45:15 +04:00
|
|
|
After=cryptsetup.target
|
2016-04-24 14:35:44 +03:00
|
|
|
Before=dracut-mount.service
|
2014-01-19 18:36:49 +04:00
|
|
|
ConditionPathExists=!@sysconfdir@/zfs/zpool.cache
|
|
|
|
|
|
|
|
[Service]
|
|
|
|
Type=oneshot
|
|
|
|
RemainAfterExit=yes
|
2015-05-27 00:06:36 +03:00
|
|
|
ExecStartPre=/sbin/modprobe zfs
|
2016-05-25 20:48:12 +03:00
|
|
|
ExecStart=@sbindir@/zpool import -aN -o cachefile=none
|
|
|
|
|
|
|
|
[Install]
|
|
|
|
WantedBy=zfs-mount.service
|
|
|
|
WantedBy=zfs.target
|