zfs/etc
Jonathon 79291065fc 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-09-22 12:18:26 -07:00
..
default Fix zfs-functions packaging bug 2020-05-12 10:53:32 -07:00
init.d Fix zfs-functions packaging bug 2020-05-12 10:53:32 -07:00
modules-load.d Restore :: in Makefile.am 2020-05-12 10:53:32 -07:00
sudoers.d zpool iostat/status -c improvements 2017-06-05 10:52:15 -07:00
systemd Verify zfs module loaded before starting services 2020-09-22 12:18:26 -07:00
zfs Fix zfs-functions packaging bug 2020-05-12 10:53:32 -07:00
Makefile.am Fix zfs-functions packaging bug 2020-05-12 10:53:32 -07:00