Method written by reddit user jkool702: Original Post
#!/bin/bash
cat << EOF | sudo tee '/usr/lib/systemd/system/zfs-modprobe.service'
[Unit]
Description=Import ZFS kernel modules using modprobe
Documentation=man:modprobe(8)
DefaultDependencies=no
Requires=systemd-udev-settle.service
After=systemd-udev-settle.service
After=cryptsetup.target
Before=zfs-import.target
Before=zfs-import-scan.service
Before=zfs-import-cache.service
[Service]
Type=oneshot
RemainAfterExit=yes
ExecStart=/sbin/modprobe zfs
[Install]
WantedBy=zfs-import.target
EOF
sudo sync
sudo systemctl daemon-reload
sudo systemctl enable zfs-modprobe.service
sudo systemctl daemon-reload