[Unit]
Description=Load encryption keys
DefaultDependencies=no
After=zfs-import.target
Before=zfs-mount.service

[Service]
Type=oneshot
RemainAfterExit=yes
ExecStart=/usr/local/sbin/zfs-unlock-user-data.sh
StandardInput=tty-force
StandardError=journal
StandardOutput=journal

[Install]
WantedBy=zfs-mount.service