diff --git a/zfs-load-key.service b/zfs-load-key.service new file mode 100644 index 0000000..72d29f4 --- /dev/null +++ b/zfs-load-key.service @@ -0,0 +1,14 @@ +[Unit] +Description=Load encryption keys +DefaultDependencies=no +After=zfs-import.target +Before=zfs-mount.service + +[Service] +Type=oneshot +RemainAfterExit=yes +ExecStart=/usr/bin/zfs load-key -a +StandardInput=tty-force + +[Install] +WantedBy=zfs-mount.service