]> git.proxmox.com Git - mirror_zfs-debian.git/blob - etc/systemd/system/zfs-import-cache.service.in
02184a6027ff5a324cb9c93d625f2f25580eeb21
[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 ConditionPathExists=@sysconfdir@/zfs/zpool.cache
10
11 [Service]
12 Type=oneshot
13 RemainAfterExit=yes
14 ExecStartPre=/sbin/modprobe zfs
15 ExecStart=@sbindir@/zpool import -c @sysconfdir@/zfs/zpool.cache -aN
16
17 [Install]
18 WantedBy=zfs-mount.service
19 WantedBy=zfs.target