summaryrefslogtreecommitdiffstats
path: root/etc/systemd/system/zfs-import-cache.service.in
blob: b1deb6ed96307678462efd7a00d31ee0dfed4464 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
[Unit]
Description=Import ZFS pools by cache file
DefaultDependencies=no
Requires=systemd-udev-settle.service
After=systemd-udev-settle.service
After=cryptsetup.target
ConditionPathExists=@sysconfdir@/zfs/zpool.cache

[Service]
Type=oneshot
RemainAfterExit=yes
ExecStartPre=/sbin/modprobe zfs
ExecStart=@sbindir@/zpool import -c @sysconfdir@/zfs/zpool.cache -aN