HomeFreeBSD

Verify zfs module loaded before starting services

Description

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

Details

Provenance
Jonathon <559369+jonathonf@users.noreply.github.com>Authored on Aug 2 2020, 12:13 AM
GitHub <noreply@github.com>Committed on Aug 2 2020, 12:13 AM
Parents
rGda60484db596: Fix logging in l2arc_rebuild()
Branches
Unknown
Tags
Unknown

Event Timeline

GitHub <noreply@github.com> committed rGf1de1600d132: Verify zfs module loaded before starting services (authored by Jonathon <559369+jonathonf@users.noreply.github.com>).Aug 2 2020, 12:13 AM