zfs/etc/systemd/system
Jonathon f1de1600d1
Verify zfs module loaded before starting services
This is a minor change to the systemd service templates that verifies
the zfs kernel module is loaded by the kernel prior to attempting to
import any zpool.

The services check for the presence of /sys/module/zfs which indicates
the zfs is module is loaded. This uses the systemd built-in check
ConditionPathIsDirectory.

Reviewed-by: Richard Laager <rlaager@wiktel.com>
Reviewed-by: Brian Behlendorf <behlendorf1@llnl.gov>
Reviewed-by: Matthew Thode <prometheanfire@gentoo.org>
Signed-off-by: Jonathon Fernyhough <jonathon.fernyhough@york.ac.uk>
Closes #10663
2020-08-01 17:13:15 -07:00
..
.gitignore Add systemd unit files for ZFS startup 2014-02-05 12:25:30 -08:00
50-zfs.preset.in New service that waits on zvol links to be created 2019-07-17 15:33:05 -07:00
Makefile.am Centralize variable substitution 2020-07-14 17:33:44 -07:00
zfs-import-cache.service.in Verify zfs module loaded before starting services 2020-08-01 17:13:15 -07:00
zfs-import-scan.service.in Verify zfs module loaded before starting services 2020-08-01 17:13:15 -07:00
zfs-import.target.in Cleanup systemd dependencies 2017-11-08 09:39:15 -08:00
zfs-mount.service.in Verify zfs module loaded before starting services 2020-08-01 17:13:15 -07:00
zfs-share.service.in Remove dependency on sharetab file and refactor sharing logic 2020-07-13 09:19:18 -07:00
zfs-volume-wait.service.in New service that waits on zvol links to be created 2019-07-17 15:33:05 -07:00
zfs-volumes.target.in New service that waits on zvol links to be created 2019-07-17 15:33:05 -07:00
zfs-zed.service.in Add kernel module auto-loading 2018-03-13 10:45:55 -07:00
zfs.target.in Systemd configuration fixes 2016-05-27 11:54:29 -07:00