From b57011380f27e346a4ec0631394758a02ea19546 Mon Sep 17 00:00:00 2001 From: BrainwreckedTech <3752022+BrainwreckedTech@users.noreply.github.com> Date: Wed, 5 Jan 2022 14:22:30 -0500 Subject: [PATCH] Added zfs-load-key.service Source: https://wiki.archlinux.org/title/ZFS#Unlock_at_boot_time:_systemd --- zfs-load-key.service | 14 ++++++++++++++ 1 file changed, 14 insertions(+) create mode 100644 zfs-load-key.service 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