]> git.proxmox.com Git - mirror_zfs-debian.git/blob - etc/systemd/system/zfs-import-cache.service.in
9d677f8dda3873e8b73724678e317931a3e7ed8b
[mirror_zfs-debian.git] / etc / systemd / system / zfs-import-cache.service.in
1 [Unit]
2 Description=Import ZFS pools by cache file
3 DefaultDependencies=no
4 Requires=systemd-udev-settle.service
5 After=systemd-udev-settle.service
6 After=cryptsetup.target
7 After=systemd-remount-fs.service
8 Before=dracut-mount.service
9 Before=zfs-import.target
10 ConditionPathExists=@sysconfdir@/zfs/zpool.cache
11
12 [Service]
13 Type=oneshot
14 RemainAfterExit=yes
15 ExecStartPre=/sbin/modprobe zfs
16 ExecStart=@sbindir@/zpool import -c @sysconfdir@/zfs/zpool.cache -aN
17
18 [Install]
19 WantedBy=zfs-import.target