]>
Commit | Line | Data |
---|---|---|
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 | ConditionPathExists=@sysconfdir@/zfs/zpool.cache | |
9 | ||
10 | [Service] | |
11 | Type=oneshot | |
12 | RemainAfterExit=yes | |
13 | ExecStartPre=/sbin/modprobe zfs | |
14 | ExecStart=@sbindir@/zpool import -c @sysconfdir@/zfs/zpool.cache -aN | |
15 | ||
16 | [Install] | |
17 | WantedBy=zfs-mount.service | |
18 | WantedBy=zfs.target |