File: zfs-import-scan.service.in

package info (click to toggle)
zfs-linux 0.7.12-2%2Bdeb10u2
  • links: PTS, VCS
  • area: contrib
  • in suites: buster
  • size: 31,596 kB
  • sloc: ansic: 239,195; sh: 47,412; asm: 6,712; makefile: 3,842; python: 2,143; perl: 765; sed: 24; awk: 5
file content (19 lines) | stat: -rw-r--r-- 473 bytes parent folder | download | duplicates (2)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
[Unit]
Description=Import ZFS pools by device scanning
Documentation=man:zpool(8)
DefaultDependencies=no
Requires=systemd-udev-settle.service
After=systemd-udev-settle.service
After=cryptsetup.target
Before=dracut-mount.service
Before=zfs-import.target
ConditionPathExists=!@sysconfdir@/zfs/zpool.cache

[Service]
Type=oneshot
RemainAfterExit=yes
ExecStartPre=-/sbin/modprobe zfs
ExecStart=@sbindir@/zpool import -aN -o cachefile=none

[Install]
WantedBy=zfs-import.target