Added zfs-load-key.service

Source: https://wiki.archlinux.org/title/ZFS#Unlock_at_boot_time:_systemd
This commit is contained in:
BrainwreckedTech 2022-01-05 14:22:30 -05:00
parent cc51eb4e3b
commit b57011380f

14
zfs-load-key.service Normal file
View File

@ -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